]> git.itanic.dy.fi Git - linux-stable/commit
net: hamradio: use eth_broadcast_addr
authorStefan Agner <stefan@agner.ch>
Sun, 17 Jun 2018 21:40:53 +0000 (23:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:26:55 +0000 (13:26 +0200)
commite5bfd8e707375eaa67c775e69ded5b8f104a80db
tree83e12b51a0969ea10545e948269abd33e805afad
parentd89657e052abc1ef49acd1bab3d66bfe3efd25e1
net: hamradio: use eth_broadcast_addr

[ Upstream commit 4e8439aa34802deab11cee68b0ecb18f887fb153 ]

The array bpq_eth_addr is only used to get the size of an
address, whereas the bcast_addr is used to set the broadcast
address. This leads to a warning when using clang:
drivers/net/hamradio/bpqether.c:94:13: warning: variable 'bpq_eth_addr' is not
      needed and will not be emitted [-Wunneeded-internal-declaration]
static char bpq_eth_addr[6];
            ^

Remove both variables and use the common eth_broadcast_addr
to set the broadcast address.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hamradio/bpqether.c