Fixed the following checkpatch complaint:
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 3 Oct 2009 12:29:05 +0000 (12:29 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 3 Oct 2009 12:29:05 +0000 (12:29 +0000)
ERROR: do not use assignment in if condition

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1167 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla2x_tgt.h

index 26c2e18..6720c7a 100644 (file)
@@ -80,7 +80,8 @@ __qla2x00_send_enable_lun(scsi_qla_host_t *ha, int enable)
 
        BUG_ON(IS_FWI2_CAPABLE(ha));
 
-       if ((pkt = (elun_entry_t *)qla2x00_req_pkt(ha)) != NULL) {
+       pkt = (elun_entry_t *)qla2x00_req_pkt(ha);
+       if (pkt != NULL) {
                pkt->entry_type = ENABLE_LUN_TYPE;
                if (enable) {
                        pkt->command_count = QLA2X00_COMMAND_COUNT_INIT;