mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 16:24:26 +00:00
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>
This commit is contained in:
parent
589d274648
commit
44d0e48e8a
@ -844,7 +844,7 @@ static int l2cap_do_connect(struct sock *sk)
|
|||||||
struct hci_conn *hcon;
|
struct hci_conn *hcon;
|
||||||
struct hci_dev *hdev;
|
struct hci_dev *hdev;
|
||||||
__u8 auth_type;
|
__u8 auth_type;
|
||||||
int err = 0;
|
int err;
|
||||||
|
|
||||||
BT_DBG("%s -> %s psm 0x%2.2x", batostr(src), batostr(dst),
|
BT_DBG("%s -> %s psm 0x%2.2x", batostr(src), batostr(dst),
|
||||||
l2cap_pi(sk)->psm);
|
l2cap_pi(sk)->psm);
|
||||||
|
Loading…
Reference in New Issue
Block a user