lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 2 Jan 2016 18:57:08 +0100 From: SF Markus Elfring <elfring@...rs.sourceforge.net> To: xen-devel@...ts.xenproject.org, netdev@...r.kernel.org, Ian Campbell <ian.campbell@...rix.com>, Wei Liu <wei.liu2@...rix.com> Cc: LKML <linux-kernel@...r.kernel.org>, kernel-janitors@...r.kernel.org, Julia Lawall <julia.lawall@...6.fr> Subject: [PATCH 3/5] xen-netback: Replace a variable initialisation by an assignment in read_xenbus_vif_flags() From: Markus Elfring <elfring@...rs.sourceforge.net> 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@...rs.sourceforge.net> --- 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 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists