summaryrefslogtreecommitdiffstats
path: root/sys/boot/userboot
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-03-14 02:06:03 +0000
committerpfg <pfg@FreeBSD.org>2017-03-14 02:06:03 +0000
commitf3584df197214b997bc9ae927780e03c37c9e36c (patch)
treeaae668303806e238ca59fc767e74a67964266c3f /sys/boot/userboot
parent1c6f535240ae8fa78eae79343be21fe7ff7a6807 (diff)
downloadFreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.zip
FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.tar.gz
MFC r313982, r314068:
sys: Replace zero with NULL for pointers. Found with: devel/coccinelle
Diffstat (limited to 'sys/boot/userboot')
-rw-r--r--sys/boot/userboot/userboot/userboot_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/userboot/userboot/userboot_disk.c b/sys/boot/userboot/userboot/userboot_disk.c
index ce7dee5..b39101b 100644
--- a/sys/boot/userboot/userboot/userboot_disk.c
+++ b/sys/boot/userboot/userboot/userboot_disk.c
@@ -91,8 +91,8 @@ userdisk_init(void)
return (ENOMEM);
for (i = 0; i < userdisk_maxunit; i++) {
if (CALLBACK(diskioctl, i, DIOCGSECTORSIZE,
- &sectorsize) != 0 || CALLBACK(diskioctl, i,
- DIOCGMEDIASIZE, &mediasize) != 0)
+ &sectorsize) != NULL || CALLBACK(diskioctl, i,
+ DIOCGMEDIASIZE, &mediasize) != NULL)
return (ENXIO);
ud_info[i].mediasize = mediasize;
ud_info[i].sectorsize = sectorsize;
OpenPOWER on IntegriCloud