aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rndis.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-05-11 18:15:59 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 15:03:14 -0400
commit007e5c8e6aad8526e234b2481d2104e3e1fe8b88 (patch)
tree99ed920821a184f461bd78192aab6f880a6228d1 /include/linux/rndis.h
parent7591157e1848b5db900b34016e2a2182329a93bb (diff)
usb/net: rndis: remove ambigous status codes
The RNDIS status codes are redefined with much stranged ifdeffery and only one of these codes was used in the hyperv driver, and there it is very clearly referring to the RNDIS variant, not some other status. So clarify this by explictly using the RNDIS_* prefixed status code in the hyperv drivera and delete the duplicate defines. Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rndis.h')
-rw-r--r--include/linux/rndis.h31
1 files changed, 3 insertions, 28 deletions
diff --git a/include/linux/rndis.h b/include/linux/rndis.h
index 430d72eefc09..61b4185b860c 100644
--- a/include/linux/rndis.h
+++ b/include/linux/rndis.h
@@ -268,32 +268,7 @@
268/* From drivers/net/hyperv/hyperv_net.h */ 268/* From drivers/net/hyperv/hyperv_net.h */
269 269
270/* Status codes */ 270/* Status codes */
271 271#define RNDIS_STATUS_PENDING (0x00000103L)
272#ifndef STATUS_SUCCESS
273#define STATUS_SUCCESS (0x00000000L)
274#endif
275
276#ifndef STATUS_UNSUCCESSFUL
277#define STATUS_UNSUCCESSFUL (0xC0000001L)
278#endif
279
280#ifndef STATUS_PENDING
281#define STATUS_PENDING (0x00000103L)
282#endif
283
284#ifndef STATUS_INSUFFICIENT_RESOURCES
285#define STATUS_INSUFFICIENT_RESOURCES (0xC000009AL)
286#endif
287
288#ifndef STATUS_BUFFER_OVERFLOW
289#define STATUS_BUFFER_OVERFLOW (0x80000005L)
290#endif
291
292#ifndef STATUS_NOT_SUPPORTED
293#define STATUS_NOT_SUPPORTED (0xC00000BBL)
294#endif
295
296#define RNDIS_STATUS_PENDING (STATUS_PENDING)
297#define RNDIS_STATUS_NOT_RECOGNIZED (0x00010001L) 272#define RNDIS_STATUS_NOT_RECOGNIZED (0x00010001L)
298#define RNDIS_STATUS_NOT_COPIED (0x00010002L) 273#define RNDIS_STATUS_NOT_COPIED (0x00010002L)
299#define RNDIS_STATUS_NOT_ACCEPTED (0x00010003L) 274#define RNDIS_STATUS_NOT_ACCEPTED (0x00010003L)
@@ -318,9 +293,9 @@
318#define RNDIS_STATUS_NOT_RESETTABLE (0x80010001L) 293#define RNDIS_STATUS_NOT_RESETTABLE (0x80010001L)
319#define RNDIS_STATUS_SOFT_ERRORS (0x80010003L) 294#define RNDIS_STATUS_SOFT_ERRORS (0x80010003L)
320#define RNDIS_STATUS_HARD_ERRORS (0x80010004L) 295#define RNDIS_STATUS_HARD_ERRORS (0x80010004L)
321#define RNDIS_STATUS_BUFFER_OVERFLOW (STATUS_BUFFER_OVERFLOW) 296#define RNDIS_STATUS_BUFFER_OVERFLOW (0x80000005L)
322 297
323#define RNDIS_STATUS_RESOURCES (STATUS_INSUFFICIENT_RESOURCES) 298#define RNDIS_STATUS_RESOURCES (0xC000009AL)
324#define RNDIS_STATUS_CLOSING (0xC0010002L) 299#define RNDIS_STATUS_CLOSING (0xC0010002L)
325#define RNDIS_STATUS_BAD_VERSION (0xC0010004L) 300#define RNDIS_STATUS_BAD_VERSION (0xC0010004L)
326#define RNDIS_STATUS_BAD_CHARACTERISTICS (0xC0010005L) 301#define RNDIS_STATUS_BAD_CHARACTERISTICS (0xC0010005L)