Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44d0e48e authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

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: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 589d2746
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);