Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135407
b: refs/heads/master
c: b555649
h: refs/heads/master
i:
  135405: 32ed87a
  135403: 5e180f5
  135399: 7d69fd2
  135391: 6a37b09
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent d325787 commit e3d5fa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63e77b391f7230ab87effbcaf7238e9b1e6d7404
refs/heads/master: b5556498b60a237cca173dfd60109f3504ce25ca
7 changes: 2 additions & 5 deletions trunk/drivers/usb/gadget/rndis.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,
int i, count;
rndis_query_cmplt_type *resp;
struct net_device *net;
struct net_device_stats *stats;
const struct net_device_stats *stats;

if (!r) return -ENOMEM;
resp = (rndis_query_cmplt_type *) r->buf;
Expand All @@ -193,10 +193,7 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,
resp->InformationBufferOffset = cpu_to_le32 (16);

net = rndis_per_dev_params[configNr].dev;
if (net->get_stats)
stats = net->get_stats(net);
else
stats = NULL;
stats = dev_get_stats(net);

switch (OID) {

Expand Down

0 comments on commit e3d5fa4

Please sign in to comment.