Date: Fri, 15 Apr 2016 16:21:13 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298071 - head/sys/compat/linux Message-ID: <201604151621.u3FGLD5T093965@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Fri Apr 15 16:21:13 2016 New Revision: 298071 URL: https://svnweb.freebsd.org/changeset/base/298071 Log: compat/linux: for pointers replace 0 with NULL. plvc is a pointer, no functional change. Found with devel/coccinelle. Modified: head/sys/compat/linux/linux_ioctl.c Modified: head/sys/compat/linux/linux_ioctl.c ============================================================================== --- head/sys/compat/linux/linux_ioctl.c Fri Apr 15 16:18:07 2016 (r298070) +++ head/sys/compat/linux/linux_ioctl.c Fri Apr 15 16:21:13 2016 (r298071) @@ -2902,7 +2902,7 @@ linux_v4l_cliplist_copy(struct l_video_w vw->clips = NULL; ppvc = &(vw->clips); while (clipcount-- > 0) { - if (plvc == 0) { + if (plvc == NULL) { error = EFAULT; break; } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604151621.u3FGLD5T093965>