[034/117] bfa: Use type int32_t to represent a signed integer

Message ID 20210420000845.25873-35-bvanassche@acm.org
State New
Headers show
  • Make better use of static type checking
Related show

Commit Message

Bart Van Assche April 20, 2021, 12:07 a.m.
Since a negative value may be assigned to 'rc', use a signed type for that

Cc: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Cc: Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Fixes: b85daafe46ee ("[SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands.")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
 drivers/scsi/bfa/bfad_bsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/scsi/bfa/bfad_bsg.c b/drivers/scsi/bfa/bfad_bsg.c
index be8dfbe13e90..371856bc67a8 100644
--- a/drivers/scsi/bfa/bfad_bsg.c
+++ b/drivers/scsi/bfa/bfad_bsg.c
@@ -3552,7 +3552,7 @@  bfad_im_bsg_request(struct bsg_job *job)
 	struct fc_bsg_request *bsg_request = job->request;
 	struct fc_bsg_reply *bsg_reply = job->reply;
-	uint32_t rc = BFA_STATUS_OK;
+	int32_t rc = BFA_STATUS_OK;
 	switch (bsg_request->msgcode) {