summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-sta.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-09-05 21:00:26 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-09-07 13:54:34 -0400
commit950094cb06f3cfd75338d8c197d1d3924724b1a8 (patch)
treefcfd1fa33ba97a10d167fedb16787e9943b8d048 /drivers/net/wireless/iwlwifi/iwl-sta.c
parentf4bbf922f39696ed5517ac91a823e4120cb649d0 (diff)
downloadlinux-950094cb06f3cfd75338d8c197d1d3924724b1a8.tar.gz
linux-950094cb06f3cfd75338d8c197d1d3924724b1a8.tar.bz2
linux-950094cb06f3cfd75338d8c197d1d3924724b1a8.zip
drivers/net/wireless/iwlwifi/iwl-agn.c: Fix return value from an unsigned function
The function has an unsigned return type, but returns a negative constant to indicate an error condition. Another error condition in the same function is indicated by returning 0, and indeed the only call to the function checks for 0 to detect errors, so the return of a negative value it converted to a return of 0. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.c')
0 files changed, 0 insertions, 0 deletions