kernel_optimize_test/arch/sh/mm
Julia Lawall 7bfa122c19 arch/sh/mm: Move a dereference below a NULL test
If the NULL test is necessary, then the dereference should be moved below
the NULL test.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/).

// <smpl>
@disable is_null@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (E == NULL) S
  f(...,E->fld,...);
- if (E == NULL) S

@@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (!E) S
  f(...,E->fld,...);
- if (!E) S
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-01-21 17:41:14 +09:00
..
asids-debugfs.c
cache-debugfs.c
cache-sh2.c
cache-sh2a.c
cache-sh3.c
cache-sh4.c
cache-sh5.c
cache-sh7705.c
consistent.c
extable_32.c
extable_64.c
fault_32.c
fault_64.c
hugetlbpage.c
init.c
ioremap_32.c
ioremap_64.c
Kconfig
Makefile
Makefile_32
Makefile_64
mmap.c
numa.c
pg-nommu.c
pg-sh4.c
pg-sh7705.c
pmb.c
tlb-nommu.c
tlb-sh3.c
tlb-sh4.c
tlb-sh5.c
tlbflush_32.c
tlbflush_64.c