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)
commit23e258e1a871c0c0cd91c294f7e66ccac74ef243
tree40c63315433e8e6a8a04e9d36d79680e25ea5f63
parent1363d9b135270662852ed2e6629fb79a36de5400
virtio_net: Cleanup command queue scatterlist usage

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>
drivers/net/virtio_net.c