[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151207015008.GA32667@stefanha-x1.localdomain>
Date: Mon, 7 Dec 2015 09:50:08 +0800
From: Stefan Hajnoczi <stefanha@...hat.com>
To: Julia Lawall <julia.lawall@...6.fr>
Cc: kbuild-all@...org, kvm@...r.kernel.org,
Matt Benjamin <mbenjamin@...hat.com>,
Christoffer Dall <christoffer.dall@...aro.org>,
netdev@...r.kernel.org, "Michael S. Tsirkin" <mst@...hat.com>,
matt.ma@...aro.org, virtualization@...ts.linux-foundation.org,
Asias He <asias@...hat.com>
Subject: Re: [PATCH] VSOCK: fix returnvar.cocci warnings
On Sun, Dec 06, 2015 at 06:56:23AM +0100, Julia Lawall wrote:
> Remove unneeded variable used to store return value.
>
> Generated by: scripts/coccinelle/misc/returnvar.cocci
>
> CC: Asias He <asias@...hat.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
> Signed-off-by: Julia Lawall <julia.lawall@...6.fr>
>
> ---
>
> vsock.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> --- a/drivers/vhost/vsock.c
> +++ b/drivers/vhost/vsock.c
> @@ -56,8 +56,7 @@ struct vhost_vsock {
>
> static u32 vhost_transport_get_local_cid(void)
> {
> - u32 cid = VHOST_VSOCK_DEFAULT_HOST_CID;
> - return cid;
> + return VHOST_VSOCK_DEFAULT_HOST_CID;
> }
>
> static struct vhost_vsock *vhost_vsock_get(u32 guest_cid)
Reviewed-by: Stefan Hajnoczi <stefanha@...hat.com>
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists