Fixed the following checkpatch complaint:

ERROR: do not use assignment in if condition


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-10-03 12:29:05 +00:00
parent db24922d55
commit 2adf188f8b

View 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;