]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/bcm/Misc.c
Staging: bcm: Reverse condition in if statement in Misc.c
[~andy/linux] / drivers / staging / bcm / Misc.c
index d8053934567caf712006089fd4f674161a0204fe..c3866d9f35801603d7230a65f40e3912c7338f56 100644 (file)
@@ -253,7 +253,7 @@ int CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter, void *ioBuffer)
                        return STATUS_FAILURE;
                }
 
-               if (TRUE == Adapter->bShutStatus) {
+               if (Adapter->bShutStatus == TRUE) {
                        BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "SYNC UP IN SHUTDOWN..Device WakeUp\n");
                        if (Adapter->bTriedToWakeUpFromlowPowerMode == FALSE) {
                                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "Waking up for the First Time..\n");
@@ -275,7 +275,7 @@ int CopyBufferToControlPacket(struct bcm_mini_adapter *Adapter, void *ioBuffer)
                }
        }
 
-       if (TRUE == Adapter->IdleMode) {
+       if (Adapter->IdleMode == TRUE) {
                /* BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0,"Device is in Idle mode ... hence\n"); */
                if (pLeader->Status == LINK_UP_CONTROL_REQ || pLeader->Status == 0x80 ||
                        pLeader->Status == CM_CONTROL_NEWDSX_MULTICLASSIFIER_REQ) {