Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Remove unused CHECK code from riocmd.c

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alan Cox and committed by
Linus Torvalds
283c9d54 8b03de1f

-30
-30
drivers/char/rio/riocmd.c
··· 387 387 388 388 func_enter(); 389 389 390 - #ifdef CHECK 391 - CheckHost(Host); 392 - CheckHostP(HostP); 393 - CheckPacketP(PacketP); 394 - #endif 395 - 396 390 /* 397 391 ** 16 port RTA note: 398 392 ** Command rup packets coming from the RTA will have pkt->data[1] (which ··· 400 406 SysPort = UnixRupP->BaseSysPort + (RBYTE(PktCmdP->PhbNum) % (ushort) PORTS_PER_RTA); 401 407 rio_dprintk(RIO_DEBUG_CMD, "Command on rup %d, port %d\n", rup, SysPort); 402 408 403 - #ifdef CHECK 404 - CheckRup(rup); 405 - CheckUnixRupP(UnixRupP); 406 - #endif 407 409 if (UnixRupP->BaseSysPort == NO_PORT) { 408 410 rio_dprintk(RIO_DEBUG_CMD, "OBSCURE ERROR!\n"); 409 411 rio_dprintk(RIO_DEBUG_CMD, "Diagnostics follow. Please WRITE THESE DOWN and report them to Specialix Technical Support\n"); ··· 419 429 rio_dprintk(RIO_DEBUG_CMD, "COMMAND information: Host Port Number 0x%x, " "Command Code 0x%x\n", PktCmdP->PhbNum, PktCmdP->Command); 420 430 return TRUE; 421 431 } 422 - #ifdef CHECK 423 - CheckSysPort(SysPort); 424 - #endif 425 432 PortP = p->RIOPortp[SysPort]; 426 433 rio_spin_lock_irqsave(&PortP->portSem, flags); 427 434 switch (RBYTE(PktCmdP->Command)) { ··· 591 604 struct UnixRup *UnixRupP; 592 605 unsigned long flags; 593 606 594 - #ifdef CHECK 595 - CheckHostP(HostP); 596 - CheckRup(Rup); 597 - CheckCmdBlkP(CmdBlkP); 598 - #endif 599 607 if (Rup >= (ushort) (MAX_RUP + LINKS_PER_UNIT)) { 600 608 rio_dprintk(RIO_DEBUG_CMD, "Illegal rup number %d in RIOQueueCmdBlk\n", Rup); 601 609 RIOFreeCmdBlk(CmdBlkP); ··· 788 806 ** If it returns RIO_FAIL then don't 789 807 ** send this command yet! 790 808 */ 791 - #ifdef CHECK 792 - CheckCmdBlkP(CmdBlkP); 793 - #endif 794 809 if (!(CmdBlkP->PreFuncP ? (*CmdBlkP->PreFuncP) (CmdBlkP->PreArg, CmdBlkP) : TRUE)) { 795 810 rio_dprintk(RIO_DEBUG_CMD, "Not ready to start command 0x%x\n", (int) CmdBlkP); 796 811 } else { ··· 795 816 /* 796 817 ** Whammy! blat that pack! 797 818 */ 798 - #ifdef CHECK 799 - CheckPacketP((PKT *) RIO_PTR(HostP->Caddr, UnixRupP->RupP->txpkt)); 800 - #endif 801 819 HostP->Copy((caddr_t) & CmdBlkP->Packet, RIO_PTR(HostP->Caddr, UnixRupP->RupP->txpkt), sizeof(PKT)); 802 820 803 821 /* ··· 828 852 unsigned long flags; 829 853 830 854 rio_spin_lock_irqsave(&PortP->portSem, flags); 831 - #ifdef CHECK 832 - CheckPortP(PortP); 833 - #endif 834 855 PortP->WflushFlag++; 835 856 PortP->MagicFlags |= MAGIC_FLUSH; 836 857 rio_spin_unlock_irqrestore(&PortP->portSem, flags); ··· 867 894 868 895 rio_spin_lock_irqsave(&PortP->portSem, flags); 869 896 870 - #ifdef CHECK 871 - CheckPortP(PortP); 872 - #endif 873 897 rio_dprintk(RIO_DEBUG_CMD, "Decrement in use count for port\n"); 874 898 875 899 if (PortP->InUse) {