Skip to contentSkip to conversation

bnx2x: remove some dead code

PATCH Applied Dan Carpenter 2 participants 2 messages Oct 5, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnx2x: remove some dead code

This code is after the break statement so it never gets used. The "vlan_mac_obj" variable does get initialized properly, so we can just delete this.

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +0 -2
index 04f17a1..6486ab8 100644
@@ -4353,8 +4353,6 @@ static inline void bnx2x_handle_classification_eqe(struct bnx2x *bp,
 			vlan_mac_obj = &bp->fp[cid].mac_obj;
 
 		break;
-		vlan_mac_obj = &bp->fp[cid].mac_obj;
-
 	case BNX2X_FILTER_MCAST_PENDING:
 		/* This is only relevant for 57710 where multicast MACs are
 		 * configured as unicast MACs using the same ramrod.
maintainer Applied
#1 lore raw

From: Dan Carpenter <[email protected]>
Date: Wed, 5 Oct 2011 08:49:18 +0300

Quoted 5 lines

This code is after the break statement so it never gets used. The "vlan_mac_obj" variable does get initialized properly, so we can just delete this.

Applied, thanks Dan.