diff options
author | Marcos Paulo de Souza | 2019-03-03 13:15:13 +0100 |
---|---|---|
committer | Marcos Paulo de Souza | 2019-03-03 13:15:13 +0100 |
commit | 3bb960c7b5f1428f1bff885b2667787e8af5001b (patch) | |
tree | bf3030816669434800e4a066c26aecd218104c98 /lib | |
parent | blockdev: make –-getbsz less confusing for end-users (diff) | |
download | kernel-qcow2-util-linux-3bb960c7b5f1428f1bff885b2667787e8af5001b.tar.gz kernel-qcow2-util-linux-3bb960c7b5f1428f1bff885b2667787e8af5001b.tar.xz kernel-qcow2-util-linux-3bb960c7b5f1428f1bff885b2667787e8af5001b.zip |
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 <marcos.souza.org@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/loopdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |