提交 581de3b0 编写于 作者: T Timo von Holtz 提交者: Greg Kroah-Hartman

Staging: hv: moved assignments out of if conditions

Moved all assignments in if conditions to the preceeding line
Signed-off-by: NTimo von Holtz <tvh@informatik.uni-kiel.de>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3c4a9413
......@@ -126,7 +126,8 @@ static void netvsc_xmit_completion(void *context)
dev_kfree_skb_any(skb);
if ((net_device_ctx->avail += num_pages) >= PACKET_PAGES_HIWATER)
net_device_ctx->avail += num_pages;
if (net_device_ctx->avail >= PACKET_PAGES_HIWATER)
netif_wake_queue(net);
}
}
......@@ -207,7 +208,8 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
net->stats.tx_packets,
net->stats.tx_bytes);
if ((net_device_ctx->avail -= num_pages) < PACKET_PAGES_LOWATER)
net_device_ctx->avail -= num_pages;
if (net_device_ctx->avail < PACKET_PAGES_LOWATER)
netif_stop_queue(net);
} else {
/* we are shutting down or bus overloaded, just drop packet */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册