From 95e310720d7fd41ef9ad254382b249a7ea6a75f7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 16 Feb 2019 00:15:02 +0000 Subject: [PATCH] Remove write-only s_flag. --- sbin/nvmecontrol/firmware.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbin/nvmecontrol/firmware.c b/sbin/nvmecontrol/firmware.c index 9692af99bcfe..9321859d2a83 100644 --- a/sbin/nvmecontrol/firmware.c +++ b/sbin/nvmecontrol/firmware.c @@ -177,7 +177,7 @@ static void firmware(const struct nvme_function *nf, int argc, char *argv[]) { int fd = -1, slot = 0; - int a_flag, s_flag, f_flag; + int a_flag, f_flag; int activate_action, reboot_required; int opt; char *p, *image = NULL; @@ -188,7 +188,7 @@ firmware(const struct nvme_function *nf, int argc, char *argv[]) uint8_t fw_slot1_ro, fw_num_slots; struct nvme_controller_data cdata; - a_flag = s_flag = f_flag = false; + a_flag = f_flag = false; while ((opt = getopt(argc, argv, "af:s:")) != -1) { switch (opt) { @@ -214,7 +214,6 @@ firmware(const struct nvme_function *nf, int argc, char *argv[]) "7.\n", optarg); usage(nf); } - s_flag = true; break; case 'f': image = optarg;