Author: mav
Date: Mon Aug 12 17:55:25 2019
New Revision: 350923
URL: https://svnweb.freebsd.org/changeset/base/350923

Log:
  MFC r344191 (by imp): Remove write-only s_flag.

Modified:
  stable/12/sbin/nvmecontrol/firmware.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/nvmecontrol/firmware.c
==============================================================================
--- stable/12/sbin/nvmecontrol/firmware.c       Mon Aug 12 17:54:28 2019        
(r350922)
+++ stable/12/sbin/nvmecontrol/firmware.c       Mon Aug 12 17:55:25 2019        
(r350923)
@@ -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, cha
        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, cha
                                    "7.\n", optarg);
                                usage(nf);
                        }
-                       s_flag = true;
                        break;
                case 'f':
                        image = optarg;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to