Commit b2ed4f79 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by James Bottomley

[SCSI] hpsa: Use BUG_ON instead of an if statement.

Signed-off-by: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 82a72c0a
...@@ -628,8 +628,7 @@ static void hpsa_scsi_remove_entry(struct ctlr_info *h, int hostno, int entry, ...@@ -628,8 +628,7 @@ static void hpsa_scsi_remove_entry(struct ctlr_info *h, int hostno, int entry,
int i; int i;
struct hpsa_scsi_dev_t *sd; struct hpsa_scsi_dev_t *sd;
if (entry < 0 || entry >= HPSA_MAX_SCSI_DEVS_PER_HBA) BUG_ON(entry < 0 || entry >= HPSA_MAX_SCSI_DEVS_PER_HBA);
BUG();
sd = h->dev[entry]; sd = h->dev[entry];
removed[*nremoved] = h->dev[entry]; removed[*nremoved] = h->dev[entry];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment