Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/cf4785949f9f
branches: trunk
changeset: 789942:cf4785949f9f
user: martin <martin%NetBSD.org@localhost>
date: Fri Sep 13 21:09:40 2013 +0000
description:
Remove unused variable
diffstat:
sys/net/if_pppoe.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 623d4a0e1b1a -r cf4785949f9f sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c Fri Sep 13 21:07:54 2013 +0000
+++ b/sys/net/if_pppoe.c Fri Sep 13 21:09:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.100 2013/07/17 10:16:58 oki Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.101 2013/09/13 21:09:40 martin Exp $ */
/*-
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.100 2013/07/17 10:16:58 oki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.101 2013/09/13 21:09:40 martin Exp $");
#include "pppoe.h"
#include "opt_pppoe.h"
@@ -1003,9 +1003,8 @@
if (len + sizeof(struct ether_header) > MHLEN) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
- struct mbuf *n;
- MFREE(m, n);
- return 0;
+ m_free(m);
+ return NULL;
}
}
m->m_data += sizeof(struct ether_header);
Home |
Main Index |
Thread Index |
Old Index