Files
linux/drivers
Julien Brunel bedf0883cb USB: drivers/usb/misc: Use an IS_ERR test rather than a NULL test
In case of error, the function backlight_device_register returns an
ERR pointer, but never returns a NULL pointer. So a NULL test that may
come after a call to this function should be strengthened by an IS_ERR
test.

The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@match_bad_null_test@
expression x, E;
statement S1,S2;
@@
x = backlight_device_register(...)
... when != x = E
* if (x != NULL) 
S1 else S2
// </smpl>

Signed-off-by: Julien Brunel <brunel@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-17 14:40:53 -07:00
..
2008-10-15 11:31:54 +11:00
2008-07-24 10:47:41 -07:00
2008-10-17 14:40:52 -07:00
2008-10-16 11:21:48 -07:00
2008-10-16 11:21:40 -07:00
2008-08-26 00:19:28 +10:00
2008-10-16 11:21:38 -07:00
2008-10-14 22:24:51 +01:00
2008-10-15 23:16:07 +01:00
2008-10-16 11:21:30 -07:00
2008-10-14 10:11:27 +11:00
2008-07-02 15:06:24 -06:00
2008-10-16 11:21:49 -07:00
2008-09-03 15:55:32 -07:00
2008-08-04 12:51:06 +09:00
2008-10-13 14:33:13 -07:00
2008-10-16 11:21:45 -07:00
2008-10-16 11:21:51 -07:00
2008-10-03 10:04:10 +02:00