forked from Minki/linux
[SCSI] lpfc: minor syntax fixes
Stop gcc complaining about undefined variables Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
b2e977ca36
commit
286fc8f8ea
@ -948,10 +948,12 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp)
|
||||
"10-port ", "PCIe"};
|
||||
break;
|
||||
default:
|
||||
m = (typeof(m)){ 0 };
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
m = (typeof(m)){ 0 };
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -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 : \
|
||||
|
Loading…
Reference in New Issue
Block a user