summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-04-02 18:46:29 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-06-26 07:12:23 +0200
commitc469c9c9733cc92bef6d4bf2c0f5bea0550abf4d (patch)
tree34e0f720e8a4085e626dd9b573940e66a3c1fc2a /net/bluetooth
parentff8744b5eb116fdf9b80a6ff774393afac7325bd (diff)
Bluetooth: 6lowpan: delete unneeded variable initialization
Delete unneeded variable initialization. Signed-off-by: Kai Ye <yekai13@huawei.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 97617d02c8f9..d5befa061aa2 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -691,7 +691,7 @@ static struct l2cap_chan *add_peer_chan(struct l2cap_chan *chan,
static int setup_netdev(struct l2cap_chan *chan, struct lowpan_btle_dev **dev)
{
struct net_device *netdev;
- int err = 0;
+ int err;
netdev = alloc_netdev(LOWPAN_PRIV_SIZE(sizeof(struct lowpan_btle_dev)),
IFACE_NAME_TEMPLATE, NET_NAME_UNKNOWN,