diff options
author | Dan Carpenter | 2010-11-13 05:37:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-11-16 21:31:50 +0100 |
commit | f05321cca53da7c7abad4bc726699e9f27bf4922 (patch) | |
tree | 7cef88782011584c9435741172ab4cf2081ec05f /drivers/staging/bcm/InterfaceMisc.c | |
parent | staging: fix iio/gyro typos, build errors (diff) | |
download | kernel-qcow2-linux-f05321cca53da7c7abad4bc726699e9f27bf4922.tar.gz kernel-qcow2-linux-f05321cca53da7c7abad4bc726699e9f27bf4922.tar.xz kernel-qcow2-linux-f05321cca53da7c7abad4bc726699e9f27bf4922.zip |
Staging: bcm: signedness bug in StoreSFParam()
wrm() returns negative error codes so "ret" needs to be signed here.
There was place where wrm() returned positive EACCES instead of
negative -EACCES so I fixed that as well. Also a few checkpatch.pl
issues.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm/InterfaceMisc.c')
-rw-r--r-- | drivers/staging/bcm/InterfaceMisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/bcm/InterfaceMisc.c b/drivers/staging/bcm/InterfaceMisc.c index b7d6e7a414a9..a51185b522cf 100644 --- a/drivers/staging/bcm/InterfaceMisc.c +++ b/drivers/staging/bcm/InterfaceMisc.c @@ -90,7 +90,7 @@ InterfaceWRM(PS_INTERFACE_ADAPTER psIntfAdapter, if((psIntfAdapter->psAdapter->StopAllXaction == TRUE) && (psIntfAdapter->psAdapter->chip_id >= T3LPB)) { BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL,"Currently Xaction is not allowed on the bus..."); - return EACCES; + return -EACCES; } if(psIntfAdapter->bSuspended ==TRUE || psIntfAdapter->bPreparingForBusSuspend == TRUE) |