summaryrefslogtreecommitdiff
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorKe Sun <sunke@kylinos.cn>2022-10-08 10:13:21 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-10-14 00:36:52 +0300
commite5f12a398371280649ccc9d6eb0b97fd42a5df98 (patch)
treecc92589200391f8430ed2c8659097f75376c1d1b /drivers/nvdimm
parent4919d3eb2ec0ee364f7e3cf2d99646c1b224fae8 (diff)
downloadlinux-e5f12a398371280649ccc9d6eb0b97fd42a5df98.tar.xz
rtc: rv3028: Fix codestyle errors
Compiler warnings: drivers/rtc/rtc-rv3028.c: In function 'rv3028_param_set': drivers/rtc/rtc-rv3028.c:559:20: warning: statement will never be executed [-Wswitch-unreachable] 559 | u8 mode; | ^~~~ drivers/rtc/rtc-rv3028.c: In function 'rv3028_param_get': drivers/rtc/rtc-rv3028.c:526:21: warning: statement will never be executed [-Wswitch-unreachable] 526 | u32 value; | ^~~~~ Fix it by moving the variable declaration to the beginning of the function. Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reported-by: k2ci <kernel-bot@kylinos.cn> Signed-off-by: Ke Sun <sunke@kylinos.cn> Link: https://lore.kernel.org/r/20221008071321.1799971-1-sunke@kylinos.cn Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions