Skip to content

Commit 6cb3216

Browse files
Quinn TranNicholas Bellinger
authored andcommitted
qla2xxx: Fix a warning reported by the "smatch" static checker
Fix the following warning reported by the "smatch" static checker: drivers/scsi/qla2xxx/qla_init.c:3910 qla2x00_alloc_fcport() warn: use 'flags' here instead of GFP_XXX? Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Cc: Dan Carpenter <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 4d65491 commit 6cb3216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,7 +3909,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags)
39093909

39103910
fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev,
39113911
sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma,
3912-
GFP_ATOMIC);
3912+
flags);
39133913
fcport->disc_state = DSC_DELETED;
39143914
fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
39153915
fcport->deleted = QLA_SESS_DELETED;

0 commit comments

Comments
 (0)