diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 744bad627596..49f2fdd2ba2b 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c | |||
@@ -1914,8 +1914,8 @@ lpfc_sli_brdkill(struct lpfc_hba *phba) | |||
1914 | "0329 Kill HBA Data: x%x x%x\n", | 1914 | "0329 Kill HBA Data: x%x x%x\n", |
1915 | phba->pport->port_state, psli->sli_flag); | 1915 | phba->pport->port_state, psli->sli_flag); |
1916 | 1916 | ||
1917 | if ((pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, | 1917 | pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); |
1918 | GFP_KERNEL)) == 0) | 1918 | if (!pmb) |
1919 | return 1; | 1919 | return 1; |
1920 | 1920 | ||
1921 | /* Disable the error attention */ | 1921 | /* Disable the error attention */ |
@@ -2809,7 +2809,7 @@ lpfc_sli_next_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | |||
2809 | /* | 2809 | /* |
2810 | * Lockless version of lpfc_sli_issue_iocb. | 2810 | * Lockless version of lpfc_sli_issue_iocb. |
2811 | */ | 2811 | */ |
2812 | int | 2812 | static int |
2813 | __lpfc_sli_issue_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, | 2813 | __lpfc_sli_issue_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, |
2814 | struct lpfc_iocbq *piocb, uint32_t flag) | 2814 | struct lpfc_iocbq *piocb, uint32_t flag) |
2815 | { | 2815 | { |
@@ -2954,7 +2954,7 @@ lpfc_extra_ring_setup( struct lpfc_hba *phba) | |||
2954 | return 0; | 2954 | return 0; |
2955 | } | 2955 | } |
2956 | 2956 | ||
2957 | void | 2957 | static void |
2958 | lpfc_sli_async_event_handler(struct lpfc_hba * phba, | 2958 | lpfc_sli_async_event_handler(struct lpfc_hba * phba, |
2959 | struct lpfc_sli_ring * pring, struct lpfc_iocbq * iocbq) | 2959 | struct lpfc_sli_ring * pring, struct lpfc_iocbq * iocbq) |
2960 | { | 2960 | { |
@@ -3717,7 +3717,7 @@ lpfc_sli_issue_mbox_wait(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmboxq, | |||
3717 | unsigned long flag; | 3717 | unsigned long flag; |
3718 | 3718 | ||
3719 | /* The caller must leave context1 empty. */ | 3719 | /* The caller must leave context1 empty. */ |
3720 | if (pmboxq->context1 != 0) | 3720 | if (pmboxq->context1) |
3721 | return MBX_NOT_FINISHED; | 3721 | return MBX_NOT_FINISHED; |
3722 | 3722 | ||
3723 | /* setup wake call as IOCB callback */ | 3723 | /* setup wake call as IOCB callback */ |