]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: rt28x0: remove dead code from rtmp_phy.h
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 21 Oct 2009 20:44:55 +0000 (22:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:12 +0000 (12:23 -0800)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/chip/rtmp_phy.h

index e2b90a14bf6c1afb94944dfc0058b7560c45e4a0..36f438b82150e0a556dfb22dc6ae1455ab10b685 100644 (file)
        But for some chipset which didn't have mcu (e.g., RBUS based chipset), we
        will use this function too and didn't access the bbp register via the MCU.
 */
-#if 0
-#define RTMP_BBP_IO_READ8_BY_REG_ID(_A, _I, _pV)                       \
-       do{                                                                                                             \
-               if ((_A)->bPCIclkOff == FALSE)                                                  \
-               {                                                                                                       \
-                       if ((_A)->infType == RTMP_DEV_INF_RBUS)                 \
-                               RTMP_BBP_IO_READ8((_A), (_I), (_pV), FALSE);    \
-                       else                                                                                            \
-                               RTMP_BBP_IO_READ8((_A), (_I), (_pV), TRUE);     \
-               }                                                                                                       \
-       }while(0)
-#else
 // Read BBP register by register's ID. Generate PER to test BA
 #define RTMP_BBP_IO_READ8_BY_REG_ID(_A, _I, _pV)                                               \
 {                                                                                                                                              \
                *(_pV) = (_A)->BbpWriteLatch[_I];                                                               \
        }                                                                                                                                       \
 }
-#endif // 0 //
 
 /*
        basic marco for BBP write operation.
        But for some chipset which didn't have mcu (e.g., RBUS based chipset), we
        will use this function too and didn't access the bbp register via the MCU.
 */
-#if 0
-#define RTMP_BBP_IO_WRITE8_BY_REG_ID(_A, _I, _pV)                      \
-       do{                                                                                                             \
-               if ((_A)->bPCIclkOff == FALSE)                                                  \
-               {                                                                                                       \
-                       if ((_A)->infType == RTMP_DEV_INF_RBUS)                 \
-                               RTMP_BBP_IO_WRITE8((_A), (_I), (_pV), FALSE);   \
-                       else                                                                                            \
-                               RTMP_BBP_IO_WRITE8((_A), (_I), (_pV), TRUE);    \
-               }                                                                                                       \
-       }while(0)
-#else
 // Write BBP register by register's ID & value
 #define RTMP_BBP_IO_WRITE8_BY_REG_ID(_A, _I, _V)                                               \
 {                                                                                                                                              \
                DBGPRINT_ERR(("****** BBP_Write_Latch Buffer exceeds max boundry ****** \n"));  \
        }                                                                                                                                               \
 }
-#endif // 0 //
-
 #endif // RTMP_MAC_PCI //
+
 #ifdef RTMP_MAC_USB
 #define RTMP_BBP_IO_READ8_BY_REG_ID(_A, _I, _pV)   RTUSBReadBBPRegister(_A, _I, _pV)
 #define RTMP_BBP_IO_WRITE8_BY_REG_ID(_A, _I, _V)   RTUSBWriteBBPRegister(_A, _I, _V)