]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print, common: Fix for whitespace change
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 10 Mar 2024 05:06:09 +0000 (14:06 +0900)
committerDaniel Wagner <wagi@monom.org>
Tue, 12 Mar 2024 15:57:57 +0000 (16:57 +0100)
Fix to change space characters for indentation to tab characters.
Delete a space between cast parentheses and variable.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
common.h
nvme.c

index b5594e9f892efe284a876601176c488576700747..b1161189b3f69332765ce4674d23adfa777abc8f 100644 (file)
--- a/common.h
+++ b/common.h
@@ -32,7 +32,7 @@ static inline uint64_t mmio_read64(void *addr)
        low = le32_to_cpu(*p);
        high = le32_to_cpu(*(p + 1));
 
-       return ((uint64_t) high << 32) | low;
+       return ((uint64_t)high << 32) | low;
 }
 
 #endif
diff --git a/nvme.c b/nvme.c
index f75c3ba147a8623b67a7cea4a1ba941288169791..ef593e152a2da76d120b1e8475e72094d697b88a 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -504,7 +504,7 @@ static int get_ana_log(int argc, char **argv, struct command *cmd,
                "decoded format (default), json or binary.";
        const char *groups = "Return ANA groups only.";
 
-       _cleanup_nvme_dev_ struct nvme_dev *dev= NULL;
+       _cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
        _cleanup_free_ struct nvme_id_ctrl *ctrl = NULL;
        _cleanup_free_ void *ana_log = NULL;
        size_t ana_log_len;