]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_debug: Drop if with an always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 6 May 2021 20:32:06 +0000 (22:32 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 02:34:31 +0000 (22:34 -0400)
commit9266c13ccad585d44c1246d2ba889a629217827e
treec62886c381a7a85dc058e9c8605250edb8fa13f8
parent5b2c39c71169f6f7d7245c2a1ef123cf62f9728c
scsi: scsi_debug: Drop if with an always false condition

to_sdebug_host() is a container_of operation, so it never returns NULL.

Link: https://lore.kernel.org/r/20210506203206.254258-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c