]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/memblaze: Code style fixes
authorTomas Bzatek <tbzatek@redhat.com>
Tue, 15 Mar 2022 15:01:54 +0000 (16:01 +0100)
committerTomas Bzatek <tbzatek@redhat.com>
Tue, 15 Mar 2022 15:01:54 +0000 (16:01 +0100)
clang complains, purely cosmetic change:

 ../plugins/memblaze/memblaze-nvme.c:1119:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
         return err;
         ^
 ../plugins/memblaze/memblaze-nvme.c:1102:7: note: previous statement is here
     } else if (err > 0)
       ^

plugins/memblaze/memblaze-nvme.c

index df2089b5b9206979414efa4398d01d8c662920a6..232b8600d59d23222be2fd93d5ef4b9bbb677b9b 100644 (file)
@@ -1051,8 +1051,8 @@ static int mb_lat_stats_log_print(int argc, char **argv, struct command *cmd, st
 #define FID        0x68
 static int memblaze_clear_error_log(int argc, char **argv, struct command *cmd, struct plugin *plugin)
 {
-       int err, fd;
-       char *desc = "Clear Memblaze devices error log.";
+    int err, fd;
+    char *desc = "Clear Memblaze devices error log.";
 
     //const char *value = "new value of feature (required)";
     //const char *save = "specifies that the controller shall save the attribute";
@@ -1100,7 +1100,7 @@ static int memblaze_clear_error_log(int argc, char **argv, struct command *cmd,
     if (!err) {
         printf("set-feature:%02x (%s), value:%#08x\n", cfg.feature_id, mb_feature_to_string(cfg.feature_id), cfg.value);
     } else if (err > 0)
-       nvme_show_status(err);
+        nvme_show_status(err);
 
 /*
        struct nvme_admin_cmd admin_cmd = {
@@ -1116,7 +1116,7 @@ static int memblaze_clear_error_log(int argc, char **argv, struct command *cmd,
                printf("NVMe Status:%s(%x)\n", nvme_status_to_string(err), err);
        };
 */
-       return err;
+    return err;
 }
 
 static int mb_set_lat_stats(int argc, char **argv,