Commit 6c4c137e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

hv_netvsc: make variable local

The variable m_ret is only used in one basic block.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a2a0a84
...@@ -956,7 +956,7 @@ int netvsc_send(struct hv_device *device, ...@@ -956,7 +956,7 @@ int netvsc_send(struct hv_device *device,
struct sk_buff *skb) struct sk_buff *skb)
{ {
struct netvsc_device *net_device; struct netvsc_device *net_device;
int ret = 0, m_ret = 0; int ret = 0;
struct vmbus_channel *out_channel; struct vmbus_channel *out_channel;
u16 q_idx = packet->q_idx; u16 q_idx = packet->q_idx;
u32 pktlen = packet->total_data_buflen, msd_len = 0; u32 pktlen = packet->total_data_buflen, msd_len = 0;
...@@ -1045,7 +1045,7 @@ int netvsc_send(struct hv_device *device, ...@@ -1045,7 +1045,7 @@ int netvsc_send(struct hv_device *device,
} }
if (msd_send) { if (msd_send) {
m_ret = netvsc_send_pkt(device, msd_send, net_device, int m_ret = netvsc_send_pkt(device, msd_send, net_device,
NULL, msd_skb); NULL, msd_skb);
if (m_ret != 0) { if (m_ret != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment