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

SF Markus Elfring
2016-01-02T18:00:24Z

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