]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/loop-util: drop inline function with one use
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Dec 2019 09:56:49 +0000 (10:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Dec 2019 09:56:49 +0000 (10:56 +0100)
src/shared/loop-util.c
src/shared/loop-util.h

index c3d8f81d08795f05cc11c515da9835c3db8fc13a..2b17df6b5d042faee663e9185a3a16298a29a762 100644 (file)
@@ -163,7 +163,7 @@ int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_fla
         if (fd < 0)
                 return -errno;
 
-        return loop_device_make(fd, open_flags, loop_flags, ret);
+        return loop_device_make_full(fd, open_flags, 0, 0, loop_flags, ret);
 }
 
 LoopDevice* loop_device_unref(LoopDevice *d) {
index 5156b46ad611a37d856af0151503ad75be301219..a9c9a647a570600424cc2535c657144fb503fd3c 100644 (file)
@@ -15,10 +15,6 @@ struct LoopDevice {
 };
 
 int loop_device_make_full(int fd, int open_flags, uint64_t offset, uint64_t size, uint32_t loop_flags, LoopDevice **ret);
-static inline int loop_device_make(int fd, int open_flags, uint32_t loop_flags, LoopDevice **ret) {
-        return loop_device_make_full(fd, open_flags, 0, 0, loop_flags, ret);
-}
-
 int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret);
 int loop_device_open(const char *loop_path, int open_flags, LoopDevice **ret);