Re: [PATCH] virtio_ring: Drop unnecessary initialization of detach_buf_packed

2022-09-27 Thread Michael S. Tsirkin
On Mon, Sep 26, 2022 at 06:29:46AM -0400, Deming Wang wrote: > The variable is initialized but it is only used after its assignment. > > Signed-off-by: Deming Wang The thing to do here is to move the first assigment to the initialization. > --- > drivers/virtio/virtio_ring.c | 2 +- > 1 file

Re: [PATCH] virtio_ring: Drop unnecessary initialization of detach_buf_packed

2022-09-26 Thread Jason Wang
On Mon, Sep 26, 2022 at 7:15 PM Deming Wang wrote: > > The variable is initialized but it is only used after its assignment. > > Signed-off-by: Deming Wang Acked-by: Jason Wang > --- > drivers/virtio/virtio_ring.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git