Ingo Molnar b58515be97 mlx4: fix error path in drivers/net/mlx4/en_rx.c
this warning:

  drivers/net/mlx4/en_rx.c: In function ‘mlx4_en_activate_rx_rings’:
  drivers/net/mlx4/en_rx.c:412: warning: ‘err’ may be used uninitialized in this function

Triggers because 'err' is uninitialized in the following input
conditions: priv->rx_ring_num is zero and mlx4_en_fill_rx_buffers()
fails.

But even if ->rx_ring_num is nonzero, 'err' will be zero if
mlx4_en_fill_rx_buffers() fails and mlx4_en_activate_rx_rings() returns
success - incorrectly.

So it's best to keep the error code uptodate on mlx4_en_fill_rx_buffers()
calls as well.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-25 16:53:32 -08:00
..
2008-11-06 00:50:56 -05:00
2008-11-21 21:29:25 -08:00
2008-11-25 16:44:39 -08:00
2008-11-21 17:32:15 -08:00
2008-11-21 17:22:53 -08:00
2008-11-21 17:29:50 -08:00
2008-11-21 17:32:54 -08:00
2008-11-25 03:53:09 -08:00
2008-10-27 17:06:18 -07:00
2008-11-24 14:47:01 -08:00
2008-11-21 17:39:02 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-09 12:22:38 -07:00
2008-11-21 17:31:27 -08:00
2008-11-12 16:02:45 -08:00
2008-11-21 17:36:04 -08:00
2008-09-03 14:38:00 -07:00
2008-09-22 19:27:10 -07:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:31:51 -08:00
2008-11-16 12:41:35 -08:00
2008-11-20 20:28:00 -08:00
2008-11-21 17:37:54 -08:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:36:36 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:28:33 -08:00
2008-10-08 19:51:33 -07:00
2008-11-25 01:02:08 -08:00
2008-11-21 17:39:02 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:39:02 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-11-25 16:44:38 -08:00
2008-11-21 17:35:40 -08:00
2008-10-17 02:38:35 +11:00
2008-10-27 17:06:18 -07:00
2008-11-10 15:11:56 -05:00
2008-11-10 15:11:56 -05:00
2008-11-21 17:34:56 -08:00
2008-11-25 16:47:35 -08:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:37:24 -08:00
2008-10-22 06:22:13 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-11-21 17:34:09 -08:00
2008-11-21 17:23:26 -08:00
2008-11-21 17:22:19 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00