Staging: bcm: Fix ERROR: return is not a function, parentheses are not required.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 7 Jun 2012 02:54:30 +0000 (22:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 17:49:53 +0000 (10:49 -0700)
This patch fixes the following error reported
by checkpatch.pl in nvm.c: "ERROR: return is
not a function, parentheses are not required".

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/nvm.c

index cfc0458b6e0a1d82c57812d5f0f82b81ee6068a7..02a090461c76bf9869e34a4d60d8476d2635aa5a 100644 (file)
@@ -472,7 +472,7 @@ static INT BeceemFlashBulkRead(struct bcm_mini_adapter *Adapter,
 static UINT BcmGetFlashSize(struct bcm_mini_adapter *Adapter)
 {
        if (IsFlash2x(Adapter))
-               return (Adapter->psFlash2xCSInfo->OffsetFromDSDStartForDSDHeader + sizeof(DSD_HEADER));
+               return Adapter->psFlash2xCSInfo->OffsetFromDSDStartForDSDHeader + sizeof(DSD_HEADER);
        else
                return 32 * 1024;
 }
@@ -2219,7 +2219,7 @@ static ULONG BcmReadFlashRDID(struct bcm_mini_adapter *Adapter)
         */
        rdmalt(Adapter, FLASH_SPI_READQ_REG, (PUINT)&ulRDID, sizeof(ulRDID));
 
-       return (ulRDID >> 8);
+       return ulRDID >> 8;
 }
 
 INT BcmAllocFlashCSStructure(struct bcm_mini_adapter *psAdapter)
This page took 0.044942 seconds and 5 git commands to generate.