Browse Source

virtio: rng: remove unused struct element

vdev is unused in struct virtrng_info, remove it.

CC: Amos Kong <akong@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Amit Shah 11 năm trước cách đây
mục cha
commit
373445d02b
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      drivers/char/hw_random/virtio-rng.c

+ 0 - 1
drivers/char/hw_random/virtio-rng.c

@@ -28,7 +28,6 @@
 static DEFINE_IDA(rng_index_ida);
 
 struct virtrng_info {
-	struct virtio_device *vdev;
 	struct hwrng hwrng;
 	struct virtqueue *vq;
 	unsigned int data_avail;