mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:40:52 +07:00
[SCSI] hpsa: Use BUG_ON instead of an if statement.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
82a72c0a12
commit
b2ed4f7919
@ -628,8 +628,7 @@ static void hpsa_scsi_remove_entry(struct ctlr_info *h, int hostno, int entry,
|
||||
int i;
|
||||
struct hpsa_scsi_dev_t *sd;
|
||||
|
||||
if (entry < 0 || entry >= HPSA_MAX_SCSI_DEVS_PER_HBA)
|
||||
BUG();
|
||||
BUG_ON(entry < 0 || entry >= HPSA_MAX_SCSI_DEVS_PER_HBA);
|
||||
|
||||
sd = h->dev[entry];
|
||||
removed[*nremoved] = h->dev[entry];
|
||||
|
Loading…
Reference in New Issue
Block a user