projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589d274
)
Bluetooth: Remove unnecessary variable initialization
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 20 Apr 2009 05:09:16 +0000
(07:09 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 8 Jun 2009 12:50:00 +0000
(14:50 +0200)
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>
net/bluetooth/l2cap.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index c0c091533bd0a3e0eaffcf65b6d62d37e8927dd4..77e6715d78985ab5b9225b46d8244ce430506993 100644
(file)
--- 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);