From: Kai Ye Date: Fri, 2 Apr 2021 10:46:29 +0000 (+0800) Subject: Bluetooth: 6lowpan: delete unneeded variable initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c469c9c9733cc92bef6d4bf2c0f5bea0550abf4d;p=linux.git Bluetooth: 6lowpan: delete unneeded variable initialization Delete unneeded variable initialization. Signed-off-by: Kai Ye Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 97617d02c8f92..d5befa061aa2c 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,