diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 11:58:09 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-26 21:10:22 +0200 |
commit | 4bdb613ff45ef5f2848584b250f8a65f6d6c5755 (patch) | |
tree | fbc7c7be6d53ee5eade0c51ef5d1357c02d98dd4 /drivers/s390/char/tape_class.c | |
parent | s390/hypfs: Cocci spatch "ptr_ret.spatch" (diff) | |
download | linux-4bdb613ff45ef5f2848584b250f8a65f6d6c5755.tar.xz linux-4bdb613ff45ef5f2848584b250f8a65f6d6c5755.zip |
s390/drivers: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/tape_class.c')
-rw-r--r-- | drivers/s390/char/tape_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/tape_class.c b/drivers/s390/char/tape_class.c index 54b3c79203f5..91c3c642c76e 100644 --- a/drivers/s390/char/tape_class.c +++ b/drivers/s390/char/tape_class.c @@ -77,7 +77,7 @@ struct tape_class_device *register_tape_dev( tcd->class_device = device_create(tape_class, device, tcd->char_device->dev, NULL, "%s", tcd->device_name); - rc = IS_ERR(tcd->class_device) ? PTR_ERR(tcd->class_device) : 0; + rc = PTR_RET(tcd->class_device); if (rc) goto fail_with_cdev; rc = sysfs_create_link( |