]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Move duplicate code to separate function
authorJan Höppner <hoeppner@linux.ibm.com>
Thu, 8 Oct 2020 13:13:31 +0000 (15:13 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:38 +0000 (08:14 -0700)
commit3dc38a9234a7a4293256ea532a1793d1176bb17f
treeba248255b98eca15183267c2c1b2ee0a3354f395
parent4e4bb49b08726f2ce218597c0d7fba8170635f7c
s390/dasd: Move duplicate code to separate function

For storing retrieved path information both the if and else block in
dasd_eckd_read_conf() use the same code. To avoid duplicate code this
should be done after the if/else block. To further increase readability,
move the code to a new function, dasd_eckd_store_conf_data().

Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd_eckd.c