s390/dasd: remove unneeded sanity check
Reported by smatch that the usage of cqr->block is inconsistent. The sanity check is not needed because _dasd_requeue_request already checks for a valid cqr->block pointer and all referenced ERP requests have a valid cqr->block pointer as well since it is copied during ERP process. Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com> Reviewed-by: Jan Hoeppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
5e725c570e
commit
a1fc8181eb
|
@ -3918,7 +3918,12 @@ static int dasd_generic_requeue_all_requests(struct dasd_device *device)
|
|||
cqr = refers;
|
||||
}
|
||||
|
||||
if (cqr->block)
|
||||
/*
|
||||
* _dasd_requeue_request already checked for a valid
|
||||
* blockdevice, no need to check again
|
||||
* all erp requests (cqr->refers) have a cqr->block
|
||||
* pointer copy from the original cqr
|
||||
*/
|
||||
list_del_init(&cqr->blocklist);
|
||||
cqr->block->base->discipline->free_cp(
|
||||
cqr, (struct request *) cqr->callback_data);
|
||||
|
|
Loading…
Reference in New Issue