]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
remove non-portable compile-time check
authorKeith Busch <keith.busch@intel.com>
Thu, 16 May 2019 15:19:42 +0000 (09:19 -0600)
committerKeith Busch <keith.busch@intel.com>
Thu, 16 May 2019 15:19:42 +0000 (09:19 -0600)
_Static_assert is a C11 feature, and we're only targeting to be
compatible from C99.

Link: https://github.com/linux-nvme/nvme-cli/issues/502
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 971a926c4ab637d5b985678cf5baf56b5745fcd0..e0f7552e217bec01ede65f2ca185d760b8907d6d 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2263,8 +2263,6 @@ static int list_secondary_ctrl(int argc, char **argv, struct command *cmd, struc
        int err, fmt, fd;
        struct nvme_secondary_controllers_list *sc_list;
 
-       _Static_assert(sizeof(struct nvme_secondary_controller_entry) != NVME_IDENTIFY_DATA_SIZE, "bad structure size");
-
        struct config {
                __u16 cntid;
                __u32 num_entries;