block: simplify code picking mount target directory
authorRafał Miłecki <rafal@milecki.pl>
Fri, 30 Nov 2018 13:09:22 +0000 (14:09 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 4 Dec 2018 08:15:34 +0000 (09:15 +0100)
commit5dc631d19f6031cdbc426c9719affa4af858b35a
treedc8bbf185faed4bf668708aad1e02b1c2183dffa
parent29717790c905ad3c67a6b66d04a50393b5435c56
block: simplify code picking mount target directory

Using a set of 3 conditional block each setting "target" variable makes
code easier to follow.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Michael Heimpold <mhei@heimpold.de>
block.c