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-06-27 09:40:57 +01:00
2008-04-10 09:55:26 +01:00
2006-11-30 10:37:32 -05:00
2008-01-25 08:08:25 +00:00
2008-01-25 08:07:56 +00:00
2008-01-25 08:07:56 +00:00
2008-04-10 09:55:26 +01:00
2007-07-09 08:22:24 +01:00
2008-01-25 08:08:13 +00:00
2007-10-10 08:55:03 +01:00
2008-04-10 09:55:26 +01:00
2008-06-27 09:39:44 +01:00
2008-06-27 09:39:22 +01:00
2008-08-13 09:59:40 +01:00
2008-08-27 13:33:10 +01:00
2008-06-27 09:39:28 +01:00
2008-06-27 09:39:31 +01:00
2008-06-27 09:39:31 +01:00
2008-03-31 10:40:05 +01:00
2008-03-31 10:39:54 +01:00
2008-06-27 09:39:28 +01:00
2008-06-27 09:39:22 +01:00
2008-06-27 09:39:22 +01:00
2008-08-13 09:59:40 +01:00
2008-06-27 09:39:37 +01:00
2008-08-13 09:59:40 +01:00
2008-08-27 13:33:10 +01:00
2008-03-31 10:41:20 +01:00
2008-08-13 09:59:40 +01:00
2008-06-27 09:39:28 +01:00
2008-08-13 09:59:40 +01:00
2008-08-13 09:59:40 +01:00
2006-09-05 10:39:21 -04:00