linux-stable-rt/net/bridge/netfilter
Julia Lawall f3d8b2e467 net/bridge/netfilter: move a dereference below a NULL test
In each case, 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>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-01-11 00:06:33 -08:00
..
Kconfig
Makefile
ebt_802_3.c
ebt_among.c
ebt_arp.c
ebt_arpreply.c
ebt_dnat.c
ebt_ip.c
ebt_ip6.c
ebt_limit.c
ebt_log.c
ebt_mark.c
ebt_mark_m.c
ebt_nflog.c
ebt_pkttype.c
ebt_redirect.c
ebt_snat.c
ebt_stp.c
ebt_ulog.c
ebt_vlan.c
ebtable_broute.c netfilter: netns ebtables: ebtable_broute in netns 2008-11-04 14:29:03 +01:00
ebtable_filter.c netfilter: netns ebtables: ebtable_filter in netns 2008-11-04 14:29:58 +01:00
ebtable_nat.c netfilter: netns ebtables: ebtable_nat in netns 2008-11-04 14:30:46 +01:00
ebtables.c net/bridge/netfilter: move a dereference below a NULL test 2009-01-11 00:06:33 -08:00