netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] vhost-blk: remove unused variable
@ 2013-03-11 14:39 Wei Yongjun
  2013-03-11 14:44 ` Michael S. Tsirkin
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-03-11 14:39 UTC (permalink / raw)
  To: mst; +Cc: yongjun_wei, kvm, virtualization, netdev

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

The variable vq is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/vhost/blk.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/vhost/blk.c b/drivers/vhost/blk.c
index 658c5f9..d9b245b 100644
--- a/drivers/vhost/blk.c
+++ b/drivers/vhost/blk.c
@@ -419,8 +419,6 @@ static void vhost_blk_handle_guest_kick(struct vhost_work *work)
 /* Host kick us for I/O completion */
 static void vhost_blk_handle_host_kick(struct vhost_work *work)
 {
-
-	struct vhost_virtqueue *vq;
 	struct vhost_blk_req *req;
 	struct llist_node *llnode;
 	struct vhost_blk *blk;
@@ -429,7 +427,6 @@ static void vhost_blk_handle_host_kick(struct vhost_work *work)
 	int ret;
 
 	blk = container_of(work, struct vhost_blk, work);
-	vq = &blk->vq;
 
 	llnode = llist_del_all(&blk->llhead);
 	added = false;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] vhost-blk: remove unused variable
  2013-03-11 14:39 [PATCH -next] vhost-blk: remove unused variable Wei Yongjun
@ 2013-03-11 14:44 ` Michael S. Tsirkin
  0 siblings, 0 replies; 2+ messages in thread
From: Michael S. Tsirkin @ 2013-03-11 14:44 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: yongjun_wei, kvm, virtualization, netdev

On Mon, Mar 11, 2013 at 10:39:27PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> The variable vq is initialized but never used
> otherwise, so remove the unused variable.
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Which branch does this target?

> ---
>  drivers/vhost/blk.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/vhost/blk.c b/drivers/vhost/blk.c
> index 658c5f9..d9b245b 100644
> --- a/drivers/vhost/blk.c
> +++ b/drivers/vhost/blk.c
> @@ -419,8 +419,6 @@ static void vhost_blk_handle_guest_kick(struct vhost_work *work)
>  /* Host kick us for I/O completion */
>  static void vhost_blk_handle_host_kick(struct vhost_work *work)
>  {
> -
> -	struct vhost_virtqueue *vq;
>  	struct vhost_blk_req *req;
>  	struct llist_node *llnode;
>  	struct vhost_blk *blk;
> @@ -429,7 +427,6 @@ static void vhost_blk_handle_host_kick(struct vhost_work *work)
>  	int ret;
>  
>  	blk = container_of(work, struct vhost_blk, work);
> -	vq = &blk->vq;
>  
>  	llnode = llist_del_all(&blk->llhead);
>  	added = false;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-11 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 14:39 [PATCH -next] vhost-blk: remove unused variable Wei Yongjun
2013-03-11 14:44 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).