block: don't duplicate mounting code in the mount_device()
authorRafał Miłecki <rafal@milecki.pl>
Fri, 30 Nov 2018 13:09:23 +0000 (14:09 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 4 Dec 2018 08:15:36 +0000 (09:15 +0100)
commita778468bca43a269d80b31b5d7b96bf745a00f38
tree3137641c5226f8cb114f063bf974ca7c3752cba8
parent5dc631d19f6031cdbc426c9719affa4af858b35a
block: don't duplicate mounting code in the mount_device()

Once target directory gets specified mounting code is identical for
devices having and not having UCI config entry. Share it.

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