be2net: don't call vid_config() when there's no vlan config
authorSathya Perla <sathya.perla@emulex.com>
Tue, 5 Jun 2012 19:37:17 +0000 (19:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jun 2012 16:06:17 +0000 (09:06 -0700)
commit1d1e9a467c7a478d24a1af39e467a414a8363661
treeb3fdb11996823108b313697ef59a62376debea11
parentcbfc60717b69fb479861f336d42bde640f650ea0
be2net: don't call vid_config() when there's no vlan config

be_vid_config() is called from be_setup() to replay config cmds after
a card reset. Skip calling it when no vlans are configured.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c