diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-19 17:27:27 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-19 17:27:27 -0400 |
commit | 499792ec6dc737467e5486527cef95ed7d74fba9 (patch) | |
tree | b88c4ef9d4491c17f71d26d33e73f05f7c7ea6a0 /drivers/s390/char/tape_class.c | |
parent | 421b20b9c44b3fcdc07d6af875dad5ae86fad014 (diff) | |
parent | d14b50cc60ca465290fcdb3b88e7d5fb684361ed (diff) |
Merge branch 'upstream-fixes' into upstream
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 643b6d078563..56b87618b100 100644 --- a/drivers/s390/char/tape_class.c +++ b/drivers/s390/char/tape_class.c | |||
@@ -76,7 +76,7 @@ struct tape_class_device *register_tape_dev( | |||
76 | device, | 76 | device, |
77 | "%s", tcd->device_name | 77 | "%s", tcd->device_name |
78 | ); | 78 | ); |
79 | rc = PTR_ERR(tcd->class_device); | 79 | rc = IS_ERR(tcd->class_device) ? PTR_ERR(tcd->class_device) : 0; |
80 | if (rc) | 80 | if (rc) |
81 | goto fail_with_cdev; | 81 | goto fail_with_cdev; |
82 | rc = sysfs_create_link( | 82 | rc = sysfs_create_link( |