aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-12 17:23:03 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-12 17:23:03 +0000
commit87d8fcc80e5c6bb3f11858d9866d3c83b1df896d (patch)
tree2f5a51580e841bd5961e1fbce270ccde7b31ac18 /sys/dev/mpt
parente321146fc5f5ebfc0fb2e5482d89297dfebb3d32 (diff)
Notes
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_raid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_raid.c b/sys/dev/mpt/mpt_raid.c
index 6b45b5421378..ac65e2f39d9d 100644
--- a/sys/dev/mpt/mpt_raid.c
+++ b/sys/dev/mpt/mpt_raid.c
@@ -595,7 +595,7 @@ mpt_issue_raid_req(struct mpt_softc *mpt, struct mpt_raid_volume *vol,
rap->Function = MPI_FUNCTION_RAID_ACTION;
rap->VolumeID = vol->config_page->VolumeID;
rap->VolumeBus = vol->config_page->VolumeBus;
- if (disk != 0)
+ if (disk != NULL)
rap->PhysDiskNum = disk->config_page.PhysDiskNum;
else
rap->PhysDiskNum = 0xFF;