summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-15 16:21:13 +0000
committerpfg <pfg@FreeBSD.org>2016-04-15 16:21:13 +0000
commit206ae5b9b9da96c59b729d6d3668a92a72f8144a (patch)
tree6b8d24441ce2423a2b4b06d58db3289dfd4a6c2b
parenta954b9061ce19b5b4bdb17e803fd6d049a22f2e6 (diff)
downloadFreeBSD-src-206ae5b9b9da96c59b729d6d3668a92a72f8144a.zip
FreeBSD-src-206ae5b9b9da96c59b729d6d3668a92a72f8144a.tar.gz
compat/linux: for pointers replace 0 with NULL.
plvc is a pointer, no functional change. Found with devel/coccinelle.
-rw-r--r--sys/compat/linux/linux_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 572060e..bb5a475 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -2902,7 +2902,7 @@ linux_v4l_cliplist_copy(struct l_video_window *lvw, struct video_window *vw)
vw->clips = NULL;
ppvc = &(vw->clips);
while (clipcount-- > 0) {
- if (plvc == 0) {
+ if (plvc == NULL) {
error = EFAULT;
break;
} else {
OpenPOWER on IntegriCloud