Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 82a72c0a
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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];