virtio_net: Cleanup command queue scatterlist usage
authorAlex Williamson <alex.williamson@hp.com>
Fri, 1 May 2009 17:27:56 +0000 (17:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 May 2009 04:26:36 +0000 (21:26 -0700)
We were avoiding calling sg_init* on scatterlists passed
into virtnet_send_command to prevent extraneous end markers.
This caused build warnings for uninitialized variables.
Cleanup the code to create proper scatterlists.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found