]> git.baikalelectronics.ru Git - kernel.git/commit
igb: do not check for vf_data if we didn't enable vfs
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 9 Apr 2009 22:49:39 +0000 (22:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Apr 2009 09:55:16 +0000 (02:55 -0700)
commit9f00d7ed0df4c60e5e212fb038053ee4ea0d6311
tree6339686dd2d51243c29c6ae1abf18f131a853012
parentf1d75ca28d3947cf0e7676d05c47010158391cb7
igb: do not check for vf_data if we didn't enable vfs

The driver is currently dumping a message in the log about failing to
allocate vf data when max_vfs is equal to 0.  This change makes it so the
error message is only displayed if we set max_vfs to a non zero value.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c