]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/solidigm: Do not overwrite previously initialized variable
authorDaniel Wagner <dwagner@suse.de>
Wed, 22 Mar 2023 16:06:49 +0000 (17:06 +0100)
committerDaniel Wagner <wagi@monom.org>
Thu, 23 Mar 2023 13:12:59 +0000 (14:12 +0100)
clang reports that .uuidx are initialized twice. Remove the default
initialize value.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
plugins/solidigm/solidigm-latency-tracking.c

index b96ac6e6ce1ae675095f1b238b7bc4f71f38beaf..40edcfa0d0f1d0420b1ffd8debab9ec41fcf43fe 100644 (file)
@@ -285,7 +285,6 @@ static int latency_tracking_is_enable(struct latency_tracker *lt, __u32 * enable
                .nsid           = 0,
                .sel            = 0,
                .cdw11          = 0,
-               .uuidx          = 0,
                .data_len       = LATENCY_TRACKING_FID_DATA_LEN,
                .data           = NULL,
                .timeout        = NVME_DEFAULT_IOCTL_TIMEOUT,
@@ -317,7 +316,6 @@ static int latency_tracking_enable(struct latency_tracker *lt)
                .cdw11          = lt->cfg.enable,
                .cdw12          = 0,
                .save           = 0,
-               .uuidx          = 0,
                .cdw15          = 0,
                .data_len       = LATENCY_TRACKING_FID_DATA_LEN,
                .data           = NULL,
@@ -369,7 +367,6 @@ static int latency_tracker_get_log(struct latency_tracker *lt)
                .csi    = NVME_CSI_NVM,
                .lsi    = NVME_LOG_LSI_NONE,
                .lsp    = lt->cfg.type,
-               .uuidx  = NVME_UUID_NONE,
                .rae    = false,
                .ot     = false,
        };