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

Commit 09d5d4aa authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Gustavo Padovan
Browse files

Bluetooth: trivial: Shorten variable scope



Make code more clear by moving sk and bt vars to the place where
they are actually used.

Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent e6dd548b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -567,8 +567,6 @@ static void bt_seq_stop(struct seq_file *seq, void *v)

static int bt_seq_show(struct seq_file *seq, void *v)
{
	struct sock *sk;
	struct bt_sock *bt;
	struct bt_seq_state *s = seq->private;
	struct bt_sock_list *l = s->l;
	bdaddr_t src_baswapped, dst_baswapped;
@@ -583,8 +581,8 @@ static int bt_seq_show(struct seq_file *seq, void *v)

		seq_putc(seq, '\n');
	} else {
		sk = sk_entry(v);
		bt = bt_sk(sk);
		struct sock *sk = sk_entry(v);
		struct bt_sock *bt = bt_sk(sk);
		baswap(&src_baswapped, &bt->src);
		baswap(&dst_baswapped, &bt->dst);