Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300104

[PATCH 5/5] xen-netback: Delete an unnecessary variable initialisation in xen_register_watchers()

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject [PATCH 5/5] xen-netback: Delete an unnecessary variable initialisation in xen_register_watchers()
Date 2016-01-02 19:10 +0100
Message-ID <qMyMP-31n-15@gated-at.bofh.it> (permalink)
References <qEuGl-43C-5@gated-at.bofh.it> <qMyD7-2In-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 2 Jan 2016 18:28:26 +0100

Omit explicit initialisation at the beginning for one local variable
that is redefined before its first use.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/net/xen-netback/xenbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
index e8dfc3d..55f0735 100644
--- a/drivers/net/xen-netback/xenbus.c
+++ b/drivers/net/xen-netback/xenbus.c
@@ -685,7 +685,7 @@ static void xen_net_rate_changed(struct xenbus_watch *watch,
 
 static int xen_register_watchers(struct xenbus_device *dev, struct xenvif *vif)
 {
-	int err = 0;
+	int err;
 	char *node;
 	unsigned maxlen;
 
-- 
2.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] xen-netback: Fine-tuning for three function  implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:00 +0100
  [PATCH 2/5] xen-netback: Delete an unnecessary goto statement in  connect_rings() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:00 +0100
  [PATCH 5/5] xen-netback: Delete an unnecessary variable  initialisation in xen_register_watchers() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-01-02 19:10 +0100
  Re: [PATCH 0/5] xen-netback: Fine-tuning for three function  implementations Joe Perches <joe@perches.com> - 2016-01-03 02:40 +0100
  Re: [PATCH 0/5] xen-netback: Fine-tuning for three function  implementations Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-04 10:50 +0100
  Re: [PATCH 0/5] xen-netback: Fine-tuning for three function  implementations Wei Liu <wei.liu2@citrix.com> - 2016-01-04 12:10 +0100

csiph-web