linux/drivers/net/wireless/iwlegacy
Julia Lawall 29d7b331c7 drivers/net/wireless/iwlegacy/4965-mac.c: adjust duplicate test
Delete successive tests to the same location.  This looks like simple code
duplication.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@s exists@
local idexpression y;
expression x,e;
@@

*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
 { ... when forall
   return ...; }
... when != \(y = e\|y += e\|y -= e\|y |= e\|y &= e\|y++\|y--\|&y\)
    when != \(XT_GETPAGE(...,y)\|WMI_CMD_BUF(...)\)
*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
 { ... when forall
   return ...; }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-01-30 15:06:38 -05:00
..
3945-debug.c iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
3945-mac.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-01-28 13:54:03 -05:00
3945-rs.c cfg80211: add 802.11ad (60gHz band) support 2012-07-02 15:11:10 +02:00
3945.c iwlegacy: initialize rx_status 2012-11-26 14:54:20 -05:00
3945.h iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
4965-calib.c iwlegacy: remove enum iw_calib and related code 2012-02-29 14:14:55 -05:00
4965-debug.c iwlegacy: move debugfs_ops to il_priv 2012-02-22 14:51:13 -05:00
4965-mac.c drivers/net/wireless/iwlegacy/4965-mac.c: adjust duplicate test 2013-01-30 15:06:38 -05:00
4965-rs.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2012-04-12 13:49:28 -04:00
4965.c iwlegacy: merge all ops structures into one 2012-02-22 14:51:15 -05:00
4965.h iwlegacy: Use standard #defines for PCIe Capability ASPM fields 2012-12-07 11:19:52 -07:00
commands.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00
common.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-01-28 13:54:03 -05:00
common.h iwlegacy: add flush callback 2013-01-07 15:16:53 -05:00
csr.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
iwl-spectrum.h iwlegacy: rename iwl to il 2011-11-15 11:16:58 +01:00
Kconfig iwlegacy: Kconfig: Change Debug Option to be more clear 2012-02-29 14:14:55 -05:00
Makefile iwlegacy: rename iwl-debug.c to debug.c 2011-11-15 14:24:36 +01:00
prph.h iwlegacy: indentions and whitespaces 2011-11-15 14:45:59 +01:00