summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-04-20 07:09:16 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-06-08 14:50:00 +0200
commit44d0e48e8a1fa174edf11e03dc70bd6a146b2a40 (patch)
tree1a783f77790a314e3d6cd3608deb57140d113357 /net/bluetooth
parent589d27464846c7cb758f93d9ee380c8ff05a161c (diff)
downloadop-kernel-dev-44d0e48e8a1fa174edf11e03dc70bd6a146b2a40.zip
op-kernel-dev-44d0e48e8a1fa174edf11e03dc70bd6a146b2a40.tar.gz
Bluetooth: Remove unnecessary variable initialization
The initial value of err is not used until it is set to -ENOMEM. So just remove the initialization completely. Based on a patch from Gustavo F. Padovan <gustavo@las.ic.unicamp.br> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index c0c0915..77e6715 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -844,7 +844,7 @@ static int l2cap_do_connect(struct sock *sk)
struct hci_conn *hcon;
struct hci_dev *hdev;
__u8 auth_type;
- int err = 0;
+ int err;
BT_DBG("%s -> %s psm 0x%2.2x", batostr(src), batostr(dst),
l2cap_pi(sk)->psm);
OpenPOWER on IntegriCloud