Skip to content

Commit

Permalink
Staging: bcm: Fix ERROR: return is not a function, parentheses are no…
Browse files Browse the repository at this point in the history
…t required.

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>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent de443c9 commit 7dcc132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/bcm/nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7dcc132

Please sign in to comment.