[PATCH 06/33] Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis()

From: Bartlomiej Zolnierkiewicz
Date: Sun Aug 23 2009 - 09:29:07 EST


From: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>
Subject: [PATCH] Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>
---
drivers/staging/rt2870/common/rtusb_io.c | 5 -----
1 file changed, 5 deletions(-)

Index: b/drivers/staging/rt2870/common/rtusb_io.c
===================================================================
--- a/drivers/staging/rt2870/common/rtusb_io.c
+++ b/drivers/staging/rt2870/common/rtusb_io.c
@@ -974,12 +974,7 @@ NDIS_STATUS RTUSBEnqueueCmdFromNdis(
PCmdQElmt cmdqelmt = NULL;
POS_COOKIE pObj = (POS_COOKIE) pAd->OS_Cookie;

-#ifndef RT30xx
if (pid_nr(pObj->RTUSBCmdThr_pid) > 0)
-#endif
-#ifdef RT30xx
- if (pObj->RTUSBCmdThr_pid < 0)
-#endif
return (NDIS_STATUS_RESOURCES);

status = RTMPAllocateMemory((PVOID *)&cmdqelmt, sizeof(CmdQElmt));
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/