Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: qla2xxx: Remove duplicate of vha->iocb_work initialization

Commit 9b3e0f4d4147 ("scsi: qla2xxx: Move work element processing out of
DPC thread") introduced the initialization of vha->iocb_work in
qla2x00_create_host() function.

This initialization is also called from qla2x00_probe_one() function, just
after qla2x00_create_host().

Hence remove this duplicate call since it has already been called before.

Signed-off-by: Gleb Chesnokov <gleb.chesnokov@scst.dev>
Link: https://lore.kernel.org/r/822b3823-f344-67d6-30f1-16e31cf68eed@scst.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Gleb Chesnokov and committed by
Martin K. Petersen
3620e174 4155658c

-1
-1
drivers/scsi/qla2xxx/qla_os.c
··· 3284 3284 host->max_cmd_len, host->max_channel, host->max_lun, 3285 3285 host->transportt, sht->vendor_id); 3286 3286 3287 - INIT_WORK(&base_vha->iocb_work, qla2x00_iocb_work_fn); 3288 3287 INIT_WORK(&ha->heartbeat_work, qla_heartbeat_work_fn); 3289 3288 3290 3289 /* Set up the irqs */