rtc: pcf2123: Add missing error code assignment before test
commit1ef1bd02ad232e57a666fcd6ae72b98569b3b78b
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 9 Aug 2016 11:58:27 +0000 (9 13:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:51 +0000 (18 10:51 +0100)
treec9cb803b9dda0a22926d357523550b00e735898d
parent4baabb72e9dd90cdb916b7fdde850235c3fd892e
rtc: pcf2123: Add missing error code assignment before test

commit 83ab7dad06b74e390c2ce0e7b5136daf286e1f5e upstream.

It is likely that checking the result of 'pcf2123_write_reg' is expected
here.
Also fix a small style issue. The '{' at the beginning of the function
is misplaced.

Fixes: 809b453b76e15 ("rtc: pcf2123: clean up writes to the rtc chip")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-pcf2123.c