diff options
author | Colin Ian King | 2019-03-16 22:57:09 +0000 |
---|---|---|
committer | Martin K. Petersen | 2019-03-27 20:56:35 -0400 |
commit | 8378573353728a02602d6f956a3df48db0505c65 (patch) | |
tree | b76417e30987f0778985dcf6bcca9a8373937e63 /drivers/i3c | |
parent | 82129697df9d90afd22736acd89d24f98bde2522 (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/i3c')
0 files changed, 0 insertions, 0 deletions