btrfs-progs: mkfs: kill print_version
authorDavid Sterba <dsterba@suse.com>
Tue, 23 Aug 2016 14:12:36 +0000 (16:12 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 24 Aug 2016 12:37:36 +0000 (14:37 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
mkfs.c

diff --git a/mkfs.c b/mkfs.c
index 2aa1d5d..bc21f92 100644 (file)
--- a/mkfs.c
+++ b/mkfs.c
@@ -365,13 +365,6 @@ static void print_usage(int ret)
        exit(ret);
 }
 
-static void print_version(void) __attribute__((noreturn));
-static void print_version(void)
-{
-       printf("mkfs.btrfs, part of %s\n", PACKAGE_STRING);
-       exit(0);
-}
-
 static u64 parse_profile(char *s)
 {
        if (strcasecmp(s, "raid0") == 0) {
@@ -1525,7 +1518,9 @@ int main(int argc, char **argv)
                                zero_end = 0;
                                break;
                        case 'V':
-                               print_version();
+                               printf("mkfs.btrfs, part of %s\n",
+                                               PACKAGE_STRING);
+                               exit(0);
                                break;
                        case 'r':
                                source_dir = optarg;