# Re: \[PATCH\] vhost/vsock: Remove unused but set variable

- From: Stefan Hajnoczi \<stefanha@redhat.com\>
- Date: 2016-11-15 13:00:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/11/11034718
- Thread: https://ratatoskr.run/kvm/2016/11/11034377/t.md

```text
On Fri, Nov 11, 2016 at 02:26:31PM +0100, Tobias Klauser wrote:
> Remove the unused but set variable vq in vhost_transport_send_pkt() to
> fix the following GCC warning when building with 'W=1':
> 
>   drivers/vhost/vsock.c:198:26: warning: variable ‘vq’ set but not used
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> ---
>  drivers/vhost/vsock.c | 3 ---
>  1 file changed, 3 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2016/11/11034718/attachment/0) (application/pgp-signature, 455 bytes)
