Julien Brunel
bd1eb8818c
GFS2: Use an IS_ERR test rather than a NULL test
...
In case of error, the function gfs2_inode_lookup returns an
ERR pointer, but never returns a NULL pointer. So a NULL test that
necessarily comes after an IS_ERR test should be deleted, and 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 = gfs2_inode_lookup(...)
... 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: Steven Whitehouse <swhiteho@redhat.com >
2008-09-05 14:19:44 +01:00
..
2008-07-03 09:59:03 -05:00
2008-07-26 12:00:07 -07:00
2008-07-26 20:53:40 -04:00
2008-08-04 21:31:34 -07:00
2008-07-24 10:47:33 -07:00
2008-07-26 12:00:07 -07:00
2008-07-26 12:00:07 -07:00
2008-08-08 16:18:34 -07:00
2008-07-26 20:53:34 -04:00
2008-07-31 16:21:13 -07:00
2008-07-21 21:54:59 -07:00
2008-08-01 11:25:29 -04:00
2008-07-28 09:46:00 -07:00
2008-07-28 16:30:21 -07:00
2008-07-26 12:00:07 -07:00
2008-04-30 08:29:54 -07:00
2008-07-28 16:30:21 -07:00
2008-08-01 11:25:25 -04:00
2008-08-03 10:50:44 -07:00
2008-08-02 09:13:55 -07:00
2008-07-26 20:53:21 -04:00
2008-09-05 14:19:44 +01:00
2008-07-26 20:53:40 -04:00
2008-07-26 20:53:40 -04:00
2008-07-26 20:53:14 -04:00
2008-07-26 20:53:13 -04:00
2008-07-26 20:53:07 -04:00
2008-07-26 12:00:07 -07:00
2008-07-26 12:00:07 -07:00
2008-08-12 00:11:49 +02:00
2008-08-12 00:11:49 +02:00
2008-08-01 10:07:51 +01:00
2008-07-26 20:53:14 -04:00
2008-08-12 16:39:22 -07:00
2008-07-26 12:00:07 -07:00
2008-07-25 10:53:34 -07:00
2008-07-26 20:53:37 -04:00
2008-08-04 16:50:38 -07:00
2008-08-12 16:39:22 -07:00
2008-08-04 21:56:09 -07:00
2008-07-31 16:21:14 -07:00
2008-08-05 14:33:49 -07:00
2008-07-26 12:00:07 -07:00
2008-07-25 10:53:44 -07:00
2008-08-05 14:33:50 -07:00
2008-07-26 12:00:07 -07:00
2008-07-04 09:52:14 +02:00
2008-08-12 16:07:30 -07:00
2008-07-30 14:30:34 -07:00
2008-07-26 20:53:14 -04:00
2008-07-26 12:00:07 -07:00
2008-07-26 12:00:07 -07:00
2008-07-26 20:53:42 -04:00
2008-07-26 12:00:07 -07:00
2008-08-04 16:50:38 -07:00
2008-07-25 10:53:34 -07:00
2008-08-04 21:56:09 -07:00
2008-07-26 20:53:40 -04:00
2008-07-24 10:47:28 -07:00
2008-07-26 20:53:28 -04:00
2008-07-26 20:53:14 -04:00
2008-07-26 12:00:08 -07:00
2008-07-28 18:10:28 +09:00
2008-07-26 12:00:08 -07:00
2008-07-26 12:00:08 -07:00
2008-07-24 10:47:27 -07:00
2008-07-26 12:00:08 -07:00
2008-07-28 16:30:21 -07:00
2008-08-06 12:30:04 +02:00
2008-08-01 11:25:31 -04:00
2008-08-04 21:56:09 -07:00
2008-06-20 14:05:53 -06:00
2008-07-25 10:53:34 -07:00
2008-07-26 20:53:34 -04:00
2008-07-28 16:58:39 +10:00
2008-07-26 12:00:06 -07:00
2008-05-01 13:08:16 -04:00
2008-08-01 11:25:25 -04:00
2008-07-24 10:47:29 -07:00
2008-08-12 16:07:30 -07:00
2008-07-28 16:30:20 -07:00
2008-08-01 11:25:24 -04:00
2008-07-26 20:53:06 -04:00
2008-07-26 20:53:40 -04:00
2008-08-01 11:25:23 -04:00
2008-07-14 19:10:52 +03:00
2008-07-26 12:00:07 -07:00
2008-07-26 20:53:34 -04:00
2008-07-26 12:00:05 -07:00
2008-07-28 18:10:28 +09:00
2008-07-30 09:41:44 -07:00
2008-07-26 12:00:07 -07:00
2008-07-26 12:00:05 -07:00
2008-07-11 19:27:31 -04:00
2008-08-01 11:25:30 -04:00
2008-08-01 11:25:32 -04:00
2008-08-01 11:25:23 -04:00
2008-07-26 20:53:06 -04:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-02 15:06:27 -06:00
2008-06-22 12:23:15 -07:00
2008-08-12 16:07:30 -07:00
2008-07-24 10:47:29 -07:00
2008-08-04 21:31:34 -07:00
2008-07-26 20:53:34 -04:00
2008-07-24 10:47:15 -07:00
2008-07-24 10:47:17 -07:00
2008-07-24 10:47:29 -07:00
2008-07-26 20:53:34 -04:00
2008-07-26 20:53:34 -04:00