mount: rework find_loop_device() to log about no errors
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Jul 2017 19:39:23 +0000 (21:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Jul 2017 19:39:23 +0000 (21:39 +0200)
commit5c6803f5bd1852fb42230c928250d19f1942c885
treeca89c4cc3ec369e130f9f3d330c11bb181d13b90
parent290843c3852c5d2fda6bef8f3214b23c7d6120ab
mount: rework find_loop_device() to log about no errors

We should either log about all errors in a function, or about none (and
then leave the logging about it to the caller who we propagate the error
to). Given that the callers of find_loop_device() already log about the
returned errors let's hence suppress the log messages in
find_loop_device() itself.
src/mount/mount-tool.c