mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Bluetooth: Remove src and dst fields from bt_sock structure
Every socket protocol now stores its own address information. So just remove the generic src and dst fields since they are no longer needed. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
94a86df010
commit
5f6cd79f47
2 changed files with 1 additions and 5 deletions
|
@ -218,8 +218,6 @@ void baswap(bdaddr_t *dst, bdaddr_t *src);
|
||||||
|
|
||||||
struct bt_sock {
|
struct bt_sock {
|
||||||
struct sock sk;
|
struct sock sk;
|
||||||
bdaddr_t src;
|
|
||||||
bdaddr_t dst;
|
|
||||||
struct list_head accept_q;
|
struct list_head accept_q;
|
||||||
struct sock *parent;
|
struct sock *parent;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
|
@ -617,15 +617,13 @@ static int bt_seq_show(struct seq_file *seq, void *v)
|
||||||
struct bt_sock *bt = bt_sk(sk);
|
struct bt_sock *bt = bt_sk(sk);
|
||||||
|
|
||||||
seq_printf(seq,
|
seq_printf(seq,
|
||||||
"%pK %-6d %-6u %-6u %-6u %-6lu %pMR %pMR %-6lu",
|
"%pK %-6d %-6u %-6u %-6u %-6lu %-6lu",
|
||||||
sk,
|
sk,
|
||||||
atomic_read(&sk->sk_refcnt),
|
atomic_read(&sk->sk_refcnt),
|
||||||
sk_rmem_alloc_get(sk),
|
sk_rmem_alloc_get(sk),
|
||||||
sk_wmem_alloc_get(sk),
|
sk_wmem_alloc_get(sk),
|
||||||
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),
|
from_kuid(seq_user_ns(seq), sock_i_uid(sk)),
|
||||||
sock_i_ino(sk),
|
sock_i_ino(sk),
|
||||||
&bt->src,
|
|
||||||
&bt->dst,
|
|
||||||
bt->parent? sock_i_ino(bt->parent): 0LU);
|
bt->parent? sock_i_ino(bt->parent): 0LU);
|
||||||
|
|
||||||
if (l->custom_seq_show) {
|
if (l->custom_seq_show) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue