mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
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>
This commit is contained in:
parent
ff8744b5eb
commit
c469c9c973
@ -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)
|
static int setup_netdev(struct l2cap_chan *chan, struct lowpan_btle_dev **dev)
|
||||||
{
|
{
|
||||||
struct net_device *netdev;
|
struct net_device *netdev;
|
||||||
int err = 0;
|
int err;
|
||||||
|
|
||||||
netdev = alloc_netdev(LOWPAN_PRIV_SIZE(sizeof(struct lowpan_btle_dev)),
|
netdev = alloc_netdev(LOWPAN_PRIV_SIZE(sizeof(struct lowpan_btle_dev)),
|
||||||
IFACE_NAME_TEMPLATE, NET_NAME_UNKNOWN,
|
IFACE_NAME_TEMPLATE, NET_NAME_UNKNOWN,
|
||||||
|
Loading…
Reference in New Issue
Block a user