mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]>
This commit is contained in:
1 parent
4d65491c26
commit
6cb3216a78
1 file changed
+1
-1
@@ -3909,7 +3909,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags)
|
||||
|
||||
fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev,
|
||||
sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma,
|
||||
GFP_ATOMIC);
|
||||
flags);
|
||||
fcport->disc_state = DSC_DELETED;
|
||||
fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
|
||||
fcport->deleted = QLA_SESS_DELETED;
|
||||
|
||||
Reference in new issue
Block a user