OSDN Git Service

s390/dasd: Remove dead return code checks
authorJan Höppner <hoeppner@linux.vnet.ibm.com>
Thu, 30 Nov 2017 18:18:21 +0000 (19:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Jan 2018 06:36:43 +0000 (07:36 +0100)
commitd62f7abcf38eef67581c3afb164dd826064ab90d
tree48d13296efa115e0c14f40bc440e48acee30a3c3
parentc7848e14f45df6fed6227c7436c49f44bd29a957
s390/dasd: Remove dead return code checks

In dasd_term_IO() ccw_device_clear() is called and the return code is
checked afterwards. Though, the return codes -EIO and -EBUSY will never
be returned and can therefore be removed from the check.

In dasd_start_IO() the return code of either ccw_device_tm_start() or
ccw_device_start() is checked. However, neither of them returns
-ETIMEDOUT. Remove that check as well.

Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Acked-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c