1
0
Fork 0

Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
wifi-calibration
Bartlomiej Zolnierkiewicz 2009-08-23 15:29:26 +02:00 committed by Greg Kroah-Hartman
parent 34bbd837df
commit a149b51d2d
1 changed files with 0 additions and 5 deletions

View 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));