From 2adf188f8b19a63c3fa3db16bacffb75a4b959b9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 3 Oct 2009 12:29:05 +0000 Subject: [PATCH] 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 --- qla2x00t/qla2x_tgt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qla2x00t/qla2x_tgt.h b/qla2x00t/qla2x_tgt.h index 26c2e1842..6720c7ac7 100644 --- a/qla2x00t/qla2x_tgt.h +++ b/qla2x00t/qla2x_tgt.h @@ -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;