diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2006-02-17 13:52:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-17 13:59:27 -0800 |
commit | 6cadb78b3bec0a439a99db8fb550dc568e924ae6 (patch) | |
tree | 0872aba76a7ea0e0d06a2fe172b5334b6b77f5a5 /drivers/s390/cio/device.c | |
parent | 54330456b2e3398743586254f6d7695061ea0d49 (diff) | |
download | blackbird-op-linux-6cadb78b3bec0a439a99db8fb550dc568e924ae6.tar.gz blackbird-op-linux-6cadb78b3bec0a439a99db8fb550dc568e924ae6.zip |
[PATCH] s390: fix assignment instead of check in ccw_device_set_online()
Fix assignment instead of check in ccw_device_set_online(). Also remove
unneeded assignment in ccw_device_do_sense().
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r-- | drivers/s390/cio/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 062fb100d94c..afc4e88551ad 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -359,7 +359,7 @@ ccw_device_set_online(struct ccw_device *cdev) else pr_debug("ccw_device_offline returned %d, device %s\n", ret, cdev->dev.bus_id); - return (ret = 0) ? -ENODEV : ret; + return (ret == 0) ? -ENODEV : ret; } static ssize_t |