diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-02-18 20:50:29 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-23 03:11:02 +0100 |
commit | 2cf0e0a9da38ce2495490869ad08efbc2057ae66 (patch) | |
tree | 15016b1c2f06553bddd3d7b130cfca05297fb269 /drivers/scsi/ips.c | |
parent | scsi: libsas: Add sas_execute_ata_cmd() (diff) | |
download | linux-2cf0e0a9da38ce2495490869ad08efbc2057ae66.tar.xz linux-2cf0e0a9da38ce2495490869ad08efbc2057ae66.zip |
scsi: ips: Remove an unreachable statement
Whether or not CONFIG_BUG is enabled, BUG() never returns. Hence, code past
a BUG() statement is unreachable. Remove one such unreachable statement.
Link: https://lore.kernel.org/r/20220218195117.25689-2-bvanassche@acm.org
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index 498bf04499ce..0db35e97ce8f 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -655,7 +655,6 @@ ips_release(struct Scsi_Host *sh) printk(KERN_WARNING "(%s) release, invalid Scsi_Host pointer.\n", ips_name); BUG(); - return (FALSE); } ha = IPS_HA(sh); |