svn commit: r321025 - stable/10/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Jul 15 18:08:21 UTC 2017
Author: dchagin
Date: Sat Jul 15 18:08:20 2017
New Revision: 321025
URL: https://svnweb.freebsd.org/changeset/base/321025
Log:
MFC r298071 (by pfg@):
compat/linux: for pointers replace 0 with NULL.
plvc is a pointer, no functional change.
Found with devel/coccinelle.
Modified:
stable/10/sys/compat/linux/linux_ioctl.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/10/sys/compat/linux/linux_ioctl.c Sat Jul 15 18:05:28 2017 (r321024)
+++ stable/10/sys/compat/linux/linux_ioctl.c Sat Jul 15 18:08:20 2017 (r321025)
@@ -2912,7 +2912,7 @@ linux_v4l_cliplist_copy(struct l_video_window *lvw, st
vw->clips = NULL;
ppvc = &(vw->clips);
while (clipcount-- > 0) {
- if (plvc == 0) {
+ if (plvc == NULL) {
error = EFAULT;
break;
} else {
More information about the svn-src-all
mailing list