kernel-ark/fs/ubifs
Julien Brunel a70948b564 UBIFS: use an IS_ERR test rather than a NULL test
In case of error, the function kthread_create returns an ERR pointer,
but never returns a NULL pointer. So a NULL test that comes before 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 = kthread_create(...)
... 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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-09-30 11:12:56 +03:00
..
budget.c UBIFS: add a print, fix comments and more minor stuff 2008-09-30 11:12:55 +03:00
commit.c UBIFS: increment commit number earlier 2008-08-13 11:27:47 +03:00
compress.c
debug.c UBIFS: fix printk format warnings 2008-09-18 09:57:57 +03:00
debug.h UBIFS: improve arguments checking in debugging messages 2008-08-13 11:42:47 +03:00
dir.c UBIFS: fix printk format warnings 2008-09-18 09:57:57 +03:00
file.c UBIFS: fix zero-length truncations 2008-08-21 16:48:52 +03:00
find.c UBIFS: remove unneeded unlikely() 2008-09-30 11:12:55 +03:00
gc.c UBIFS: remove unneeded unlikely() 2008-09-30 11:12:55 +03:00
io.c UBIFS: make ubifs_ro_mode() not inline 2008-08-13 11:24:26 +03:00
ioctl.c
journal.c UBIFS: xattr bugfixes 2008-08-14 12:46:20 +03:00
Kconfig
key.h
log.c UBIFS: increment commit number earlier 2008-08-13 11:27:47 +03:00
lprops.c UBIFS: inline one-line functions 2008-09-30 11:12:56 +03:00
lpt_commit.c
lpt.c
Makefile
master.c
misc.h UBIFS: inline one-line functions 2008-09-30 11:12:56 +03:00
orphan.c UBIFS: increment commit number earlier 2008-08-13 11:27:47 +03:00
recovery.c
replay.c
sb.c
scan.c
shrinker.c
super.c UBIFS: use an IS_ERR test rather than a NULL test 2008-09-30 11:12:56 +03:00
tnc_commit.c UBIFS: minor tweaks in commit 2008-08-13 11:38:19 +03:00
tnc_misc.c
tnc.c UBIFS: remove unneeded unlikely() 2008-09-30 11:12:55 +03:00
ubifs-media.h UBIFS: make minimum fanout 3 2008-09-05 20:02:35 +03:00
ubifs.h UBIFS: inline one-line functions 2008-09-30 11:12:56 +03:00
xattr.c UBIFS: remove unneeded unlikely() 2008-09-30 11:12:55 +03:00