Message ID | 20230526154905.1419042-1-liu.yun@linux.dev |
---|---|
State | New |
Headers | show |
Series | scsi: qla2xxx: remove unnecessary NULL pointer check | expand |
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 5258b07687a9..0ba089a753f2 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -684,7 +684,7 @@ void qla24xx_delete_sess_fn(struct work_struct *work) fc_port_t *fcport = container_of(work, struct fc_port, del_work); struct qla_hw_data *ha = NULL; - if (!fcport || !fcport->vha || !fcport->vha->hw) + if (!fcport->vha || !fcport->vha->hw) return; ha = fcport->vha->hw;