Module Name: src
Committed By: dyoung
Date: Wed Dec 9 00:45:26 UTC 2009
Modified Files:
src/sys/netinet: raw_ip.c
Log Message:
Remove superfluous cast of a pointer to void *.
Compare a pointer with NULL, not 0.
No functional change intended.
To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/netinet/raw_ip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/raw_ip.c
diff -u src/sys/netinet/raw_ip.c:1.110 src/sys/netinet/raw_ip.c:1.111
--- src/sys/netinet/raw_ip.c:1.110 Wed Sep 16 15:23:05 2009
+++ src/sys/netinet/raw_ip.c Wed Dec 9 00:45:25 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.110 2009/09/16 15:23:05 pooka Exp $ */
+/* $NetBSD: raw_ip.c,v 1.111 2009/12/09 00:45:25 dyoung Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.110 2009/09/16 15:23:05 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.111 2009/12/09 00:45:25 dyoung Exp $");
#include "opt_inet.h"
#include "opt_compat_netbsd.h"
@@ -534,8 +534,7 @@
#endif
if (req == PRU_CONTROL)
- return (in_control(so, (long)m, (void *)nam,
- (struct ifnet *)control, l));
+ return in_control(so, (long)m, nam, (struct ifnet *)control, l);
s = splsoftnet();
@@ -554,7 +553,7 @@
if (req != PRU_SEND && req != PRU_SENDOOB && control)
panic("rip_usrreq: unexpected control mbuf");
#endif
- if (inp == 0 && req != PRU_ATTACH) {
+ if (inp == NULL && req != PRU_ATTACH) {
error = EINVAL;
goto release;
}