projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a2a0a8
)
hv_netvsc: make variable local
author
Stephen Hemminger
<sthemmin@microsoft.com>
Tue, 23 Aug 2016 19:17:55 +0000
(12:17 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Aug 2016 19:05:37 +0000
(12:05 -0700)
The variable m_ret is only used in one basic block.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/hyperv/netvsc.c
b/drivers/net/hyperv/netvsc.c
index 471c476e72534acdae09fbc7fa2a1e57ce2bc43f..2a9ccc4d9e3c6b464f919609752b1303e78ec5ca 100644
(file)
--- a/
drivers/net/hyperv/netvsc.c
+++ b/
drivers/net/hyperv/netvsc.c
@@
-956,7
+956,7
@@
int netvsc_send(struct hv_device *device,
struct sk_buff *skb)
{
struct netvsc_device *net_device;
- int ret = 0
, m_ret = 0
;
+ int ret = 0;
struct vmbus_channel *out_channel;
u16 q_idx = packet->q_idx;
u32 pktlen = packet->total_data_buflen, msd_len = 0;
@@
-1045,8
+1045,8
@@
int netvsc_send(struct hv_device *device,
}
if (msd_send) {
- m_ret = netvsc_send_pkt(device, msd_send, net_device,
- NULL, msd_skb);
+
int
m_ret = netvsc_send_pkt(device, msd_send, net_device,
+
NULL, msd_skb);
if (m_ret != 0) {
netvsc_free_send_slot(net_device,