Searched hist:83785733 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 83785733 Sat Mar 16 17:57:09 CDT 2019 Colin Ian King <colin.king@canonical.com> 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> 83785733 Sat Mar 16 17:57:09 CDT 2019 Colin Ian King <colin.king@canonical.com> 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>
|