Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6062829f authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: rng: re-arrange struct elements for better packing



Re-arrange the elements of the virtrng_info struct to pack it better.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 373445d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -30,11 +30,11 @@ static DEFINE_IDA(rng_index_ida);
struct virtrng_info {
struct virtrng_info {
	struct hwrng hwrng;
	struct hwrng hwrng;
	struct virtqueue *vq;
	struct virtqueue *vq;
	unsigned int data_avail;
	struct completion have_data;
	struct completion have_data;
	bool busy;
	char name[25];
	char name[25];
	unsigned int data_avail;
	int index;
	int index;
	bool busy;
};
};


static bool probe_done;
static bool probe_done;