Skip to content

Commit

Permalink
VSOCK: fix returnvar.cocci warnings
Browse files Browse the repository at this point in the history
Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

CC: Asias He <asias@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julia Lawall authored and David S. Miller committed Dec 7, 2015
1 parent 6c73008 commit 0d76d6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/vhost/vsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d76d6e

Please sign in to comment.