scsi: qla2xxx: Fix return of uninitialized value in rval
A previous change removed the initialization of rval and there is now an error where an uninitialized rval is being returned on an error return path. Fix this by returning -ENODEV. Link: https://lore.kernel.org/r/20201008183239.200358-1-colin.king@canonical.com Fixes: b9947187 ("scsi: qla2xxx: Use constant when it is known") Reviewed-by:Himanshu Madhani <himanshu.madhani@oracle.com> Acked-by:
Pavel Machek (CIP) <pavel@denx.de> Signed-off-by:
Colin Ian King <colin.king@canonical.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Uninitialized scalar variable")
Loading
Please register or sign in to comment