]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
s390/cio: de-duplicate subchannel validation
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Mon, 26 Oct 2015 10:13:18 +0000 (11:13 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 3 Nov 2015 13:40:50 +0000 (14:40 +0100)
commite510f681d27d402d74dc7b81e13db118e4180937
tree696e10adb00c80651acf5ca890e6af8601e0f678
parent8f0ba83178d4f3630687296c45d593326ec2d63d
s390/cio: de-duplicate subchannel validation

cio_validate_io_subchannel() and cio_validate_msg_subchannel() are
identical, as the called functions already take care about the
differences between subchannel types.

Just inline the code into the only user,
cio_validate_subchannel(), instead.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cio.c