android_kernel_samsung_msm8976/drivers/isdn/hardware/mISDN
Julia Lawall 20b788045b drivers/isdn/hardware/mISDN: 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: Karsten Keil <kkeil@suse.de>
2009-01-11 18:04:37 +01:00
..
hfc_multi.h mISDN: Add ISDN sample clock API to mISDN core 2009-01-09 22:44:27 +01:00
hfc_pci.h mISDN: Add different different timer settings for hfc-pci 2009-01-09 22:44:28 +01:00
hfcmulti.c drivers/isdn/hardware/mISDN: move a dereference below a NULL test 2009-01-11 18:04:37 +01:00
hfcpci.c Make parameter debug writable 2009-01-11 17:58:13 +01:00
hfcsusb.c mISDN: Add HFC USB driver 2009-01-09 22:44:30 +01:00
hfcsusb.h mISDN: Add HFC USB driver 2009-01-09 22:44:30 +01:00
Kconfig mISDN: Add HFC USB driver 2009-01-09 22:44:30 +01:00
Makefile mISDN: Add HFC USB driver 2009-01-09 22:44:30 +01:00