Staging: bcm: signedness bug in StoreSFParam()
authorDan Carpenter <error27@gmail.com>
Sat, 13 Nov 2010 04:37:49 +0000 (07:37 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:31:50 +0000 (12:31 -0800)
commitf05321cca53da7c7abad4bc726699e9f27bf4922
tree7cef88782011584c9435741172ab4cf2081ec05f
parent0ebce2696305c3f49f54f3af25cb966ef1b24f71
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>
drivers/staging/bcm/CmHost.c
drivers/staging/bcm/InterfaceMisc.c