From: Bartlomiej Zolnierkiewicz Date: Sun, 23 Aug 2009 13:29:26 +0000 (+0200) Subject: Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a149b51d2d2a2913e30e8697e4cc65a20719c695;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis() Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rt2870/common/rtusb_io.c b/drivers/staging/rt2870/common/rtusb_io.c index ef545af2af93..30c032d614ec 100644 --- a/drivers/staging/rt2870/common/rtusb_io.c +++ b/drivers/staging/rt2870/common/rtusb_io.c @@ -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));