From 3bb960c7b5f1428f1bff885b2667787e8af5001b Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Sun, 3 Mar 2019 09:15:13 -0300 Subject: lib/loopdev.c: Inline loopcxt_has_device loopcxt_has_device is a one liner, so adding inline statement does not hurt. Signed-off-by: Marcos Paulo de Souza --- lib/loopdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/loopdev.c b/lib/loopdev.c index 2b6ecea4d..5d2e95b7e 100644 --- a/lib/loopdev.c +++ b/lib/loopdev.c @@ -128,7 +128,7 @@ int loopcxt_set_device(struct loopdev_cxt *lc, const char *device) return 0; } -int loopcxt_has_device(struct loopdev_cxt *lc) +inline int loopcxt_has_device(struct loopdev_cxt *lc) { return lc && *lc->device; } -- cgit v1.2.3-55-g7522