summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-18 09:07:29 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-18 10:28:18 -0400
commit8d324fd9e1bee59274d67a0a08eac5f7b1573db7 (patch)
treeff28e2e2d7800452d47c4f5bac213d5a498043b3
parent5cbee5573604e6c6170911bdfb78e2a0e6aa142e (diff)
downloadlinux-8d324fd9e1bee59274d67a0a08eac5f7b1573db7.tar.gz
linux-8d324fd9e1bee59274d67a0a08eac5f7b1573db7.tar.bz2
linux-8d324fd9e1bee59274d67a0a08eac5f7b1573db7.zip
net/hsr: Remove unused but set variable
Remove the unused but set variable master_dev in check_local_dest to fix the following GCC warning when building with 'W=1': net/hsr/hsr_forward.c: In function ‘check_local_dest’: net/hsr/hsr_forward.c:303:21: warning: variable ‘master_dev’ set but not used [-Wunused-but-set-variable] Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/hsr/hsr_forward.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c
index 5ee1d43f1310..4ebe2aa3e7d3 100644
--- a/net/hsr/hsr_forward.c
+++ b/net/hsr/hsr_forward.c
@@ -300,10 +300,6 @@ static void hsr_forward_do(struct hsr_frame_info *frame)
static void check_local_dest(struct hsr_priv *hsr, struct sk_buff *skb,
struct hsr_frame_info *frame)
{
- struct net_device *master_dev;
-
- master_dev = hsr_port_get_hsr(hsr, HSR_PT_MASTER)->dev;
-
if (hsr_addr_is_self(hsr, eth_hdr(skb)->h_dest)) {
frame->is_local_exclusive = true;
skb->pkt_type = PACKET_HOST;