virtio: drop a useless config read
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Apr 2015 03:01:20 +0000 (13:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Apr 2015 04:07:14 +0000 (14:37 +1030)
commit012665391dfe12bf8a88d1000e627be012c39dbf
tree9ea688f55216c24bc42038a70917d181b4037647
parentcaa0e2d0e331a04cbc1cb9bca3169c1d94b80838
virtio: drop a useless config read

    "virtio: core support for config generation"
fixed reading up 64 bit values, adding generation
checks for such reads.

By mistake, it left an explicit get call in place
as well. the result is that the value is read twice,
the first result is discarded.

Not a big deal since this only happens with virtio
blk and only on boot ATM, so performance isn't
affected, but let's clean it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_config.h