[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/5] xen-netback: Replace a variable initialisation by an assignment in read_xenbus_vif_flags()
From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Sat, 2 Jan 2016 18:01:57 +0100 Replace an explicit initialisation for one local variable at the beginning by an assignment. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- drivers/net/xen-netback/xenbus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index d4947e1..aff963f 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -946,7 +946,7 @@ err: /* Regular return falls through with err == 0 */ static int read_xenbus_vif_flags(struct backend_info *be) { - struct xenvif *vif = be->vif; + struct xenvif *vif; struct xenbus_device *dev = be->dev; unsigned int rx_copy; int err, val; @@ -968,13 +968,14 @@ static int read_xenbus_vif_flags(struct backend_info *be) if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-rx-notify", "%d", &val) < 0) val = 0; + vif = be->vif; if (!val) { /* - Reduce drain timeout to poll more frequently for * Rx requests. * - Disable Rx stall detection. */ - be->vif->drain_timeout = msecs_to_jiffies(30); - be->vif->stall_timeout = 0; + vif->drain_timeout = msecs_to_jiffies(30); + vif->stall_timeout = 0; } if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-sg", -- 2.6.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |