Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH] VSOCK: fix returnvar.cocci warnings
@ 2015-12-06  5:56 Julia Lawall
  2015-12-07  1:50 ` Stefan Hajnoczi
  2015-12-07  3:38 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Julia Lawall @ 2015-12-06  5:56 UTC (permalink / raw)
  Cc: Stefan Hajnoczi, kvm, Michael S. Tsirkin, netdev, virtualization,
	kbuild-all, Matt Benjamin, Asias He, Christoffer Dall, matt.ma

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>

---

 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)

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

end of thread, other threads:[~2015-12-07  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-06  5:56 [PATCH] VSOCK: fix returnvar.cocci warnings Julia Lawall
2015-12-07  1:50 ` Stefan Hajnoczi
2015-12-07  3:38 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox