]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Drop empty statements
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 7 Sep 2024 00:15:04 +0000 (01:15 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 7 Sep 2024 15:13:51 +0000 (10:13 -0500)
The double ';;' were clearly a mistake and clang-format only makes it
worse if we try running it. Remove the mistake before mass-converting
the source code.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/114
libkmod/libkmod-config.c
testsuite/test-testsuite.c

index 6b137a5117b3d410163e59852116b94f283fab2e..343183f3acbf163413e3f49f6c61aee44f13b2d4 100644 (file)
@@ -1221,7 +1221,7 @@ static struct kmod_config_iter *kmod_config_iter_new(const struct kmod_ctx* ctx,
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_blacklists(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_BLACKLIST);
 }
@@ -1229,7 +1229,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_blacklists(const struct kmo
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_install_commands(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_INSTALL);
 }
@@ -1237,7 +1237,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_install_commands(const stru
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_remove_commands(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_REMOVE);
 }
@@ -1245,7 +1245,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_remove_commands(const struc
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_aliases(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_ALIAS);
 }
@@ -1253,7 +1253,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_aliases(const struct kmod_c
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_options(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_OPTION);
 }
@@ -1261,7 +1261,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_options(const struct kmod_c
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_softdeps(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_SOFTDEP);
 }
@@ -1269,7 +1269,7 @@ KMOD_EXPORT struct kmod_config_iter *kmod_config_get_softdeps(const struct kmod_
 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_weakdeps(const struct kmod_ctx *ctx)
 {
        if (ctx == NULL)
-               return NULL;;
+               return NULL;
 
        return kmod_config_iter_new(ctx, CONFIG_TYPE_WEAKDEP);
 }
index 42c88e2511cde1f2ba1511767925a8c9c813b8fb..9ef19cc4ca6e2b2fb87ad67a95e29544bc4af357 100644 (file)
@@ -54,7 +54,7 @@ static int testsuite_rootfs_fopen(const struct test *t)
 
        fp = fopen(MODULE_DIRECTORY "/a", "r");
        if (fp == NULL)
-               return EXIT_FAILURE;;
+               return EXIT_FAILURE;
 
        n = fscanf(fp, "%s", s);
        if (n != 1)