linux/drivers/s390/char
Julien Brunel 0983e56835 [S390] drivers/s390: Use an IS_ERR test rather than a NULL test
In case of error, functions dasd_kmalloc_request and idal_buffer_alloc
return an ERR pointer, but never return the NULL pointer. So after a
call to one of these functions, a NULL test should be replaced by an
IS_ERR test.

A simplified version of the semantic patch that makes this change is
as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@correct_null_test@
expression x,E;
statement S1, S2;
@@
x =
(
  dasd_kmalloc_request(...)
|
  idal_buffer_alloc(...)
)
<... when != x = E
if (
(
- x@p2 != NULL
+ ! IS_ERR ( x )
|
- x@p2 == NULL
+ IS_ERR( x )
)
 )
S1
else S2
...>
? x = E;
// </smpl>

Signed-off-by:  Julien Brunel <brunel@diku.dk>
Signed-off-by:  Julia Lawall <julia@diku.dk>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-08-21 19:46:39 +02:00
..
con3215.c
con3270.c
ctrlchar.c
ctrlchar.h
defkeymap.c
defkeymap.map
fs3270.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2008-07-14 14:48:31 -07:00
Kconfig
keyboard.c
keyboard.h
Makefile
monreader.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2008-07-14 14:48:31 -07:00
monwriter.c
raw3270.c device create: s390: convert device_create to device_create_drvdata 2008-07-21 21:54:44 -07:00
raw3270.h
sclp_cmd.c [S390] Add support for memory hot-remove. 2008-08-01 16:39:33 +02:00
sclp_con.c
sclp_config.c [S390] dont use kthread for smp_rescan_cpus(). 2008-08-01 16:39:36 +02:00
sclp_cpi_sys.c
sclp_cpi_sys.h
sclp_cpi.c
sclp_quiesce.c
sclp_rw.c
sclp_rw.h
sclp_sdias.c
sclp_tty.c
sclp_tty.h
sclp_vt220.c
sclp.c [S390] nohz/sclp: disable timer on synchronous waits. 2008-08-01 16:39:30 +02:00
sclp.h
tape_34xx.c
tape_3590.c
tape_3590.h
tape_block.c
tape_char.c [S390] drivers/s390: Use an IS_ERR test rather than a NULL test 2008-08-21 19:46:39 +02:00
tape_class.c device create: s390: convert device_create to device_create_drvdata 2008-07-21 21:54:44 -07:00
tape_class.h
tape_core.c
tape_proc.c
tape_std.c [S390] drivers/s390: Use an IS_ERR test rather than a NULL test 2008-08-21 19:46:39 +02:00
tape_std.h
tape.h
tty3270.c
tty3270.h
vmcp.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2008-07-14 14:48:31 -07:00
vmcp.h
vmlogrdr.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2008-07-14 14:48:31 -07:00
vmur.c device create: s390: convert device_create to device_create_drvdata 2008-07-21 21:54:44 -07:00
vmur.h
vmwatchdog.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2008-07-14 14:48:31 -07:00
zcore.c [S390] zfcpdump: Make SCSI disk dump tool recognize storage holes 2008-07-17 17:22:07 +02:00