File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21899,20 +21899,20 @@ lpfc_get_io_buf_from_private_pool(struct lpfc_hba *phba,
21899
21899
static struct lpfc_io_buf *
21900
21900
lpfc_get_io_buf_from_expedite_pool(struct lpfc_hba *phba)
21901
21901
{
21902
- struct lpfc_io_buf *lpfc_ncmd;
21902
+ struct lpfc_io_buf *lpfc_ncmd = NULL, *iter ;
21903
21903
struct lpfc_io_buf *lpfc_ncmd_next;
21904
21904
unsigned long iflag;
21905
21905
struct lpfc_epd_pool *epd_pool;
21906
21906
21907
21907
epd_pool = &phba->epd_pool;
21908
- lpfc_ncmd = NULL;
21909
21908
21910
21909
spin_lock_irqsave(&epd_pool->lock, iflag);
21911
21910
if (epd_pool->count > 0) {
21912
- list_for_each_entry_safe(lpfc_ncmd , lpfc_ncmd_next,
21911
+ list_for_each_entry_safe(iter , lpfc_ncmd_next,
21913
21912
&epd_pool->list, list) {
21914
- list_del(&lpfc_ncmd ->list);
21913
+ list_del(&iter ->list);
21915
21914
epd_pool->count--;
21915
+ lpfc_ncmd = iter;
21916
21916
break;
21917
21917
}
21918
21918
}
You can’t perform that action at this time.
0 commit comments