Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netbt l2cap_detach1: fix gcc warning for non-DIAGNOSTIC ...
details: https://anonhg.NetBSD.org/src/rev/83dd246f6316
branches: trunk
changeset: 329306:83dd246f6316
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 19 03:18:57 2014 +0000
description:
l2cap_detach1: fix gcc warning for non-DIAGNOSTIC case.
diffstat:
sys/netbt/l2cap_socket.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 19ebdc8ca29e -r 83dd246f6316 sys/netbt/l2cap_socket.c
--- a/sys/netbt/l2cap_socket.c Mon May 19 02:51:24 2014 +0000
+++ b/sys/netbt/l2cap_socket.c Mon May 19 03:18:57 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: l2cap_socket.c,v 1.12 2014/05/19 02:51:24 rmind Exp $ */
+/* $NetBSD: l2cap_socket.c,v 1.13 2014/05/19 03:18:57 rmind Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: l2cap_socket.c,v 1.12 2014/05/19 02:51:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: l2cap_socket.c,v 1.13 2014/05/19 03:18:57 rmind Exp $");
/* load symbolic names */
#ifdef BLUETOOTH_DEBUG
@@ -111,9 +111,7 @@
static void
l2cap_detach1(struct socket *so)
{
- struct l2cap_channel *pcb = so->so_pcb;
-
- KASSERT(pcb != NULL);
+ KASSERT(so->so_pcb != NULL);
l2cap_detach((struct l2cap_channel **)&so->so_pcb);
KASSERT(so->so_pcb == NULL);
}
Home |
Main Index |
Thread Index |
Old Index