scsi: qla2xxx: Simplify qlt_send_term_imm_notif()
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:26 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:50 +0000 (17:24 -0400)
commite65449aa23fbeaba5b358f23a0c790cef6a77969
tree83fb726cda67e338e3ffd46e4d728a859cdb53a9
parentd8f945bf8096375f458683b5718722a2d5dda2f0
scsi: qla2xxx: Simplify qlt_send_term_imm_notif()

All qlt_send_term_imm_notif() callers pass '1' as second argument to this
function. Hence remove the (broken) code that depends on that second
argument having another value. Add a pr_debug() statement that prints rc to
avoid that the compiler would complain that rc has been set but is not
used.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c