diff mbox

[net-next,6/6] 6lowpan: fix set not used warning

Message ID 20170724172523.13135-7-sthemmin@microsoft.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Stephen Hemminger July 24, 2017, 5:25 p.m. UTC
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
 net/bluetooth/6lowpan.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Luiz Augusto von Dentz July 25, 2017, 12:45 p.m. UTC | #1
Hi Stephen,

On Mon, Jul 24, 2017 at 8:25 PM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> ---
>  net/bluetooth/6lowpan.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
> index 2af4f1cc0ab4..4e2576fc0c59 100644
> --- a/net/bluetooth/6lowpan.c
> +++ b/net/bluetooth/6lowpan.c
> @@ -273,9 +273,6 @@ static int iphc_decompress(struct sk_buff *skb, struct net_device *netdev,
>                            struct lowpan_peer *peer)
>  {
>         const u8 *saddr;
> -       struct lowpan_btle_dev *dev;
> -
> -       dev = lowpan_btle_dev(netdev);
>
>         saddr = peer->lladdr;
>
> --
> 2.11.0

Acked-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
diff mbox

Patch

diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 2af4f1cc0ab4..4e2576fc0c59 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -273,9 +273,6 @@  static int iphc_decompress(struct sk_buff *skb, struct net_device *netdev,
 			   struct lowpan_peer *peer)
 {
 	const u8 *saddr;
-	struct lowpan_btle_dev *dev;
-
-	dev = lowpan_btle_dev(netdev);
 
 	saddr = peer->lladdr;