]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
VSOCK: fix returnvar.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 6 Dec 2015 05:56:23 +0000 (06:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 03:37:58 +0000 (22:37 -0500)
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>
drivers/vhost/vsock.c

index 65b1cf8a06cb328c3a4775240dbaa991fb41c3f6..64bcb10bb901d51914772607d5bd75aff7b8130f 100644 (file)
@@ -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)