igb: move setting of buffsz out of repeated path in alloc_rx_buffers
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 6 Feb 2009 23:15:25 +0000 (23:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Feb 2009 10:43:02 +0000 (02:43 -0800)
commitdb76176215ec5af7a67386e0eacb5ea53e040f10
treeeb68c1e9151058e130a919e10779561d4a8edfa9
parent69d3ca5357bb93bb3a139c5d90077407f8828bd1
igb: move setting of buffsz out of repeated path in alloc_rx_buffers

buffsz is being repeatedly set when allocaing buffers.  Since this value
should only need to be set once in the function I am moving it out of the
looped portion of the path.

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