Skip to content

Commit

Permalink
[SCSI] hpsa: Use BUG_ON instead of an if statement.
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 17, 2010
1 parent 82a72c0 commit b2ed4f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b2ed4f7

Please sign in to comment.