summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-m41t80.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-03-16 22:57:09 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-27 20:56:35 -0400
commit8378573353728a02602d6f956a3df48db0505c65 (patch)
treeb76417e30987f0778985dcf6bcca9a8373937e63 /drivers/rtc/rtc-m41t80.c
parent82129697df9d90afd22736acd89d24f98bde2522 (diff)
scsi: libcxgbi: remove uninitialized variable len
The variable len is not being inintialized and the uninitialized value is being returned. However, this return path is never reached because the default case in the switch statement returns -ENOSYS. Clean up the code by replacing the return -ENOSYS with a break for the default case and returning -ENOSYS at the end of the function. This allows len to be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/rtc/rtc-m41t80.c')
0 files changed, 0 insertions, 0 deletions