virtio-net: Use virtio_config_val() for retrieving config
commit3c677ce07fe509ee784485ce9f09c44bc30ed4a2
authorSasha Levin <levinsasha928@gmail.com>
Sun, 14 Aug 2011 14:52:33 +0000 (14 17:52 +0300)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 26 Aug 2011 00:23:45 +0000 (26 10:23 +1000)
tree9501cdcccd1fbc6d26500f45f153cd23c758cc62
parent35edf7fc8f1fede2bf648744bd37dca9bc65d390
virtio-net: Use virtio_config_val() for retrieving config

This patch modifies virtio-net to use virtio_config_val() instead
of a 'if(virtio_has_feature()) vdev->config->get()' construct to retrieve
optional values from the config space.

Cc: Amit Shah <amit.shah@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c