aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/common
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-02-22 02:35:59 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-02-22 02:35:59 +0000
commite099b90b801b7e0986874ba7dd4ff8bd9cf3e3b3 (patch)
tree04b8e98cf3194069224bd53565bef10185a73980 /sys/boot/common
parentdae82c37b0ad3717b17b39421c03bd278ce6258f (diff)
downloadsrc-e099b90b801b7e0986874ba7dd4ff8bd9cf3e3b3.tar.gz
src-e099b90b801b7e0986874ba7dd4ff8bd9cf3e3b3.zip
sys: Replace zero with NULL for pointers.
Found with: devel/coccinelle MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D9694
Notes
Notes: svn path=/head/; revision=314068
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/md.c b/sys/boot/common/md.c
index e81d1bb6e28e..22a0e953ad54 100644
--- a/sys/boot/common/md.c
+++ b/sys/boot/common/md.c
@@ -103,7 +103,7 @@ md_strategy(void *devdata, int rw, daddr_t blk, size_t size,
if ((ofs + size) > MD_IMAGE_SIZE)
size = MD_IMAGE_SIZE - ofs;
- if (rsize != 0)
+ if (rsize != NULL)
*rsize = size;
switch (rw) {