]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: scsi_debug: Remove unused variable sdebug_any_injecting_opt
authorBart Van Assche <bvanassche@acm.org>
Wed, 20 May 2026 17:14:53 +0000 (10:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 23 May 2026 01:31:41 +0000 (21:31 -0400)
commitf199cee401f7dc7280c8ed070d2433478253b665
tree784ce8d3f508a24e59e8f8beacf6cb44a57a81a2
parent0f51fd84684316375d5c191a1ec5e18743fb1601
scsi: scsi_debug: Remove unused variable sdebug_any_injecting_opt

The static variable sdebug_any_injecting_opt is no longer read. Commit
3a90a63d02b8 ("scsi: scsi_debug: every_nth triggered error injection")
removed all code that reads this variable. Hence, also remove this
variable itself. Remove SDEBUG_OPT_ALL_INJECTING because there is no
code left that uses this constant if sdebug_any_injecting_opt is
removed. This has been detected by building the scsi_debug driver with
the git HEAD version of Clang and with W=1.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20260520171454.4035623-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c