kernel_optimize_test/drivers/hid
Julia Lawall 76c317d6e5 HID: Move dereferences below a NULL test
If the NULL test is necessary, then the dereferences 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,E1;
identifier i,fld;
statement S;
@@

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

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-07-20 00:03:35 +02:00
..
usbhid HID: hiddev, fix lock imbalance 2009-06-22 11:01:06 +02:00
hid-a4tech.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-apple.c HID: fix inverted wheel for bluetooth version of apple mighty mouse 2009-06-10 10:25:56 +02:00
hid-belkin.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-cherry.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-chicony.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-core.c HID: Move dereferences below a NULL test 2009-07-20 00:03:35 +02:00
hid-cypress.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-debug.c HID: add new multitouch and digitizer contants 2009-05-20 15:48:35 +02:00
hid-drff.c HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00
hid-ezkey.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-gaff.c HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00
hid-gyration.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-ids.h HID: force feedback support for SmartJoy PLUS PS2/USB adapter 2009-05-15 14:28:44 +02:00
hid-input.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-kensington.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-kye.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-lg2ff.c HID: convert to dev_* prints 2008-10-14 23:51:01 +02:00
hid-lg.c HID: Add support for the G25 force feedback wheel in native mode 2009-04-17 11:39:39 +02:00
hid-lg.h HID: move logitech FF processing 2008-10-14 23:50:56 +02:00
hid-lgff.c HID: autocentering support for Logitech Force 3D Pro 2009-05-15 16:05:57 +02:00
hid-microsoft.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-monterey.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-ntrig.c HID: Multitouch support for the N-Trig touchscreen 2009-05-20 15:49:35 +02:00
hid-petalynx.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-pl.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-samsung.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-sjoy.c HID: force feedback support for SmartJoy PLUS PS2/USB adapter 2009-05-15 14:28:44 +02:00
hid-sony.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-sunplus.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-tmff.c HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00
hid-topseed.c HID: remove compat stuff 2009-03-30 15:12:54 +02:00
hid-wacom.c HID: Wacom Graphire Bluetooth driver 2009-05-13 11:42:11 +02:00
hid-zpff.c HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00
hidraw.c HID: hidraw -- fix comment about accepted devices 2009-06-04 15:44:25 +02:00
Kconfig HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00
Makefile HID: fix hid-ff drivers so that devices work even without ff support 2009-05-15 15:51:36 +02:00