Message ID | 20240417082700.2238557-1-suhui@nfschina.com |
---|---|
State | New |
Headers | show |
Series | scsi: qla2xxx: edif: Fix an error code problem in qla24xx_sadb_update() | expand |
diff --git a/drivers/scsi/qla2xxx/qla_edif.c b/drivers/scsi/qla2xxx/qla_edif.c index dcde55c8ee5d..6f1aac36a144 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -1836,7 +1836,7 @@ qla24xx_sadb_update(struct bsg_job *bsg_job) bsg_job_done(bsg_job, bsg_reply->result, bsg_reply->reply_payload_rcv_len); - return 0; + return rval; } static void
Clang Static Checker (scan-build) Warning: drivers/scsi/qla2xxx/qla_edif.c:line 1568, column 3 Value stored to 'rval' is never read. Return the error code rather than zero to dismiss this warning. Fixes: dd30706e73b7 ("scsi: qla2xxx: edif: Add key update") Signed-off-by: Su Hui <suhui@nfschina.com> --- drivers/scsi/qla2xxx/qla_edif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)