rtc: ds1374: Merge conditional + WARN_ON()
authorSrikant Ritolia <s.ritolia@samsung.com>
Tue, 29 Nov 2016 11:04:37 +0000 (11:04 +0000)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 7 Dec 2016 15:34:43 +0000 (16:34 +0100)
commit01835fadf5eda4afdca5c0aa7a89e210ee45bec6
treef3b0f494f0352e3aeb5ec39e38e92f2d500f6da1
parent1c02cbfec5c7754cb16456fcb26592a20781cdff
rtc: ds1374: Merge conditional + WARN_ON()

WARN_ON does both these things in one statement.
Using a better pattern with WARN_ON().

Signed-off-by: Srikant Ritolia <s.ritolia@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1374.c