android_kernel_xiaomi_sm8350/fs/9p
Julien Brunel 62aa528e02 9p: use an IS_ERR test rather than a NULL test
In case of error, the function p9_client_walk returns an ERR pointer, but
never returns a NULL pointer.  So a NULL test that comes after an IS_ERR
test should be deleted.

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 = p9_client_walk(...)
... 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: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2008-09-24 16:22:22 -05:00
..
fid.c
fid.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
Makefile
v9fs_vfs.h 9p: fix O_APPEND in legacy mode 2008-07-03 09:59:03 -05:00
v9fs.c 9p: fix error path during early mount 2008-05-14 19:23:27 -05:00
v9fs.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
vfs_addr.c 9p: Documentation updates 2008-05-14 19:23:25 -05:00
vfs_dentry.c
vfs_dir.c [PATCH] fix ->llseek() for a bunch of directories 2008-08-25 01:18:09 -04:00
vfs_file.c 9p: fix O_APPEND in legacy mode 2008-07-03 09:59:03 -05:00
vfs_inode.c 9p: use an IS_ERR test rather than a NULL test 2008-09-24 16:22:22 -05:00
vfs_super.c 9p: fix error path during early mount 2008-05-14 19:23:27 -05:00