Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 23 Aug 2009 13:29:26 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:21 +0000 (12:02 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2870/common/rtusb_io.c

index ef545af2af935822f80dee558524254addf502de..30c032d614ec4472084ac568ac971ff934b734ee 100644 (file)
@@ -982,12 +982,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));