OSDN Git Service

Bluetooth: L2CAP: remove set but not used variable 'credits'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 14 Mar 2020 10:06:06 +0000 (18:06 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Mar 2020 18:49:28 +0000 (19:49 +0100)
commit965995b7d7bef00c7952460fcf835ab8feb747ff
tree1cbd5249b44eacf51d0f9ca603a1dc5ca5ca041a
parentb354e6c10eaf97a1f5aff4839795bd32ad32f0f9
Bluetooth: L2CAP: remove set but not used variable 'credits'

net/bluetooth/l2cap_core.c: In function l2cap_ecred_conn_req:
net/bluetooth/l2cap_core.c:5848:6: warning: variable credits set but not used [-Wunused-but-set-variable]

commit 15f02b910562 ("Bluetooth: L2CAP: Add initial code for Enhanced Credit Based Mode")
involved this unused variable, remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c