From: Marcos Paulo de Souza Date: Sun, 3 Mar 2019 12:15:13 +0000 (-0300) Subject: lib/loopdev.c: Inline loopcxt_has_device X-Git-Tag: v2.34-rc1~80^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bb960c7b5f1428f1bff885b2667787e8af5001b;p=thirdparty%2Futil-linux.git 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 --- diff --git a/lib/loopdev.c b/lib/loopdev.c index 2b6ecea4d3..5d2e95b7e4 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; }