Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net eliminate unused variable
details: https://anonhg.NetBSD.org/src/rev/a46dd47e6de3
branches: trunk
changeset: 791190:a46dd47e6de3
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 07 21:44:48 2013 +0000
description:
eliminate unused variable
diffstat:
sys/net/if_gre.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 09f8ef98b2d7 -r a46dd47e6de3 sys/net/if_gre.c
--- a/sys/net/if_gre.c Thu Nov 07 21:33:59 2013 +0000
+++ b/sys/net/if_gre.c Thu Nov 07 21:44:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gre.c,v 1.152 2013/09/13 21:05:02 martin Exp $ */
+/* $NetBSD: if_gre.c,v 1.153 2013/11/07 21:44:48 christos Exp $ */
/*
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.152 2013/09/13 21:05:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.153 2013/11/07 21:44:48 christos Exp $");
#include "opt_atalk.h"
#include "opt_gre.h"
@@ -412,7 +412,6 @@
static int
gre_socreate(struct gre_softc *sc, const struct gre_soparm *sp, int *fdout)
{
- const struct protosw *pr;
int fd, rc;
struct mbuf *m;
struct sockaddr *sa;
@@ -459,8 +458,7 @@
m = NULL;
/* XXX convert to a (new) SOL_SOCKET call */
- pr = so->so_proto;
- KASSERT(pr != NULL);
+ KASSERT(so->so_proto != NULL);
rc = so_setsockopt(curlwp, so, IPPROTO_IP, IP_TTL,
&ip_gre_ttl, sizeof(ip_gre_ttl));
if (rc != 0) {
Home |
Main Index |
Thread Index |
Old Index