Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Cornelia Huck and committed by
Linus Torvalds
6cadb78b 54330456

+1 -2
+1 -1
drivers/s390/cio/device.c
··· 359 359 else 360 360 pr_debug("ccw_device_offline returned %d, device %s\n", 361 361 ret, cdev->dev.bus_id); 362 - return (ret = 0) ? -ENODEV : ret; 362 + return (ret == 0) ? -ENODEV : ret; 363 363 } 364 364 365 365 static ssize_t
-1
drivers/s390/cio/device_status.c
··· 317 317 /* 318 318 * We have ending status but no sense information. Do a basic sense. 319 319 */ 320 - sch = to_subchannel(cdev->dev.parent); 321 320 sch->sense_ccw.cmd_code = CCW_CMD_BASIC_SENSE; 322 321 sch->sense_ccw.cda = (__u32) __pa(cdev->private->irb.ecw); 323 322 sch->sense_ccw.count = SENSE_MAX_COUNT;