aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorKe Sun <[email protected]>2022-10-08 15:13:21 +0800
committerAlexandre Belloni <[email protected]>2022-10-13 23:36:52 +0200
commite5f12a398371280649ccc9d6eb0b97fd42a5df98 (patch)
treecc92589200391f8430ed2c8659097f75376c1d1b /lib/test_fortify/write_overflow-strncpy-src.c
parent4919d3eb2ec0ee364f7e3cf2d99646c1b224fae8 (diff)
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 <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: [email protected] Cc: [email protected] Reported-by: k2ci <[email protected]> Signed-off-by: Ke Sun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions