summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.h
diff options
context:
space:
mode:
authorJames Bottomley2006-03-06 17:20:56 +0100
committerJames Bottomley2006-03-06 17:20:56 +0100
commit286fc8f8ea7ef58b54f150fc900ce019af483e89 (patch)
tree6439b4ad904b396c5d29516f650d83193499332e /drivers/scsi/lpfc/lpfc_scsi.h
parent[PATCH] lpfc 8.1.3: Change version number to 8.1.3 (diff)
downloadkernel-qcow2-linux-286fc8f8ea7ef58b54f150fc900ce019af483e89.tar.gz
kernel-qcow2-linux-286fc8f8ea7ef58b54f150fc900ce019af483e89.tar.xz
kernel-qcow2-linux-286fc8f8ea7ef58b54f150fc900ce019af483e89.zip
[SCSI] lpfc: minor syntax fixes
Stop gcc complaining about undefined variables Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.h')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.h b/drivers/scsi/lpfc/lpfc_scsi.h
index acd64c49e849..cdcd2535803f 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.h
+++ b/drivers/scsi/lpfc/lpfc_scsi.h
@@ -23,10 +23,13 @@
struct lpfc_hba;
#define list_remove_head(list, entry, type, member) \
+ do { \
+ entry = NULL; \
if (!list_empty(list)) { \
entry = list_entry((list)->next, type, member); \
list_del_init(&entry->member); \
- }
+ } \
+ } while(0)
#define list_get_first(list, type, member) \
(list_empty(list)) ? NULL : \