Skip to content

Commit

Permalink
net/hsr: Remove unused but set variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tklauser authored and davem330 committed Oct 18, 2016
1 parent 5cbee55 commit 8d324fd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/hsr/hsr_forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d324fd

Please sign in to comment.