Merge patch series "Update lpfc to revision 14.4.0.2"
[sfrench/cifs-2.6.git] / drivers / scsi / lpfc / lpfc_bsg.c
index 529df1768fa89f50dfb3af58b1d72ddb9c5d319e..4156419c52c78a8f5efe74f74ed697b9eb15d4a9 100644 (file)
@@ -5002,7 +5002,8 @@ lpfc_forced_link_speed(struct bsg_job *job)
                goto job_error;
        }
 
-       forced_reply->supported = (phba->hba_flag & HBA_FORCED_LINK_SPEED)
+       forced_reply->supported = test_bit(HBA_FORCED_LINK_SPEED,
+                                          &phba->hba_flag)
                                   ? LPFC_FORCED_LINK_SPEED_SUPPORTED
                                   : LPFC_FORCED_LINK_SPEED_NOT_SUPPORTED;
 job_error: