linux/arch/powerpc
Julia Lawall 4700ebd1c3 arch/powerpc/platforms/85xx/p1022_ds.c: adjust duplicate test
Delete successive tests to the same location.  The code tested the result
of a previous call, that itself was already tested.  It is changed to test
the result of the most recent call.

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: Kumar Gala <galak@kernel.crashing.org>
2013-02-15 13:53:47 -06:00
..
boot powerpc/85xx: dts - add ranges property for SEC 2013-02-13 07:49:09 -06:00
configs powerpc/83xx: update kmeter1_defconfig 2013-02-13 07:49:08 -06:00
crypto powerpc: Add a powerpc implementation of SHA-1 2013-01-10 14:43:45 +11:00
include powerpc: Add support for context switching the TAR register 2013-02-08 14:05:50 +11:00
kernel powerpc: Add support for context switching the TAR register 2013-02-08 14:05:50 +11:00
kvm Merge branch 'merge' into next 2013-01-29 11:33:37 +11:00
lib uprobes/powerpc: Add dependency on single step emulation 2013-01-29 11:35:06 +11:00
math-emu
mm powerpc/mm: Eliminate unneeded for_each_memblock 2013-01-29 11:34:25 +11:00
net PPC: net: bpf_jit_comp: add VLAN instructions for BPF JIT 2012-11-17 22:12:47 -05:00
oprofile Merge branch 'merge' into next 2013-01-29 11:33:37 +11:00
perf perf/Power: PERF_EVENT_IOC_ENABLE does not reenable event 2013-01-29 11:35:07 +11:00
platforms arch/powerpc/platforms/85xx/p1022_ds.c: adjust duplicate test 2013-02-15 13:53:47 -06:00
sysdev powerpc/85xx: fix various PCI node compatible strings 2013-02-13 07:49:03 -06:00
xmon powerpc: Rename set_break to avoid naming conflict 2013-01-16 05:25:47 +11:00
Kconfig uprobes/powerpc: Add dependency on single step emulation 2013-01-29 11:35:06 +11:00
Kconfig.debug powerpc: IOMMU fault injection 2012-07-10 19:18:59 +10:00
Makefile powerpc: Avoid load of static chain register when calling nested functions through a pointer on 64bit 2013-01-10 17:01:27 +11:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00