diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-06 11:20:56 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-06 11:20:56 -0500 |
commit | 286fc8f8ea7ef58b54f150fc900ce019af483e89 (patch) | |
tree | 6439b4ad904b396c5d29516f650d83193499332e /drivers | |
parent | b2e977ca364764dabb091c360f329868b7e3f29b (diff) |
[SCSI] lpfc: minor syntax fixes
Stop gcc complaining about undefined variables
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 71d2c8d3b001..a2e15436730e 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -948,10 +948,12 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
948 | "10-port ", "PCIe"}; | 948 | "10-port ", "PCIe"}; |
949 | break; | 949 | break; |
950 | default: | 950 | default: |
951 | m = (typeof(m)){ 0 }; | ||
951 | break; | 952 | break; |
952 | } | 953 | } |
953 | break; | 954 | break; |
954 | default: | 955 | default: |
956 | m = (typeof(m)){ 0 }; | ||
955 | break; | 957 | break; |
956 | } | 958 | } |
957 | 959 | ||
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 @@ | |||
23 | struct lpfc_hba; | 23 | struct lpfc_hba; |
24 | 24 | ||
25 | #define list_remove_head(list, entry, type, member) \ | 25 | #define list_remove_head(list, entry, type, member) \ |
26 | do { \ | ||
27 | entry = NULL; \ | ||
26 | if (!list_empty(list)) { \ | 28 | if (!list_empty(list)) { \ |
27 | entry = list_entry((list)->next, type, member); \ | 29 | entry = list_entry((list)->next, type, member); \ |
28 | list_del_init(&entry->member); \ | 30 | list_del_init(&entry->member); \ |
29 | } | 31 | } \ |
32 | } while(0) | ||
30 | 33 | ||
31 | #define list_get_first(list, type, member) \ | 34 | #define list_get_first(list, type, member) \ |
32 | (list_empty(list)) ? NULL : \ | 35 | (list_empty(list)) ? NULL : \ |