* [PATCH] net/Bluetooth - delete unneeded variable initialization
@ 2021-04-02 10:46 Kai Ye
2021-04-09 13:51 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Kai Ye @ 2021-04-02 10:46 UTC (permalink / raw)
To: marcel, johan.hedberg, luiz.dentz, davem, kuba
Cc: linux-bluetooth, netdev, linux-kernel
Delete unneeded variable initialization.
Signed-off-by: Kai Ye <yekai13@huawei.com>
---
net/bluetooth/6lowpan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index cff4944..ee4b0ec 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -692,7 +692,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,
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/Bluetooth - delete unneeded variable initialization
2021-04-02 10:46 [PATCH] net/Bluetooth - delete unneeded variable initialization Kai Ye
@ 2021-04-09 13:51 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2021-04-09 13:51 UTC (permalink / raw)
To: Kai Ye
Cc: Johan Hedberg, Luiz Augusto von Dentz, David S. Miller,
Jakub Kicinski, linux-bluetooth, netdev, linux-kernel
Hi Kai,
> Delete unneeded variable initialization.
>
> Signed-off-by: Kai Ye <yekai13@huawei.com>
> ---
> net/bluetooth/6lowpan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02 10:46 [PATCH] net/Bluetooth - delete unneeded variable initialization Kai Ye
2021-04-09 13:51 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).