Author: mav
Date: Mon Oct 19 20:40:03 2020
New Revision: 366859
URL: https://svnweb.freebsd.org/changeset/base/366859

Log:
  MFC r352671 (by imp): Size is unsigned, so remove the test entirely.
  
  The kernel won't crash if you have a bad value and I'd rather not have
  nvmecontrol know the internal details about how the nvme driver limits
  the transfer size.

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

Modified: stable/12/sbin/nvmecontrol/perftest.c
==============================================================================
--- stable/12/sbin/nvmecontrol/perftest.c       Mon Oct 19 20:39:00 2020        
(r366858)
+++ stable/12/sbin/nvmecontrol/perftest.c       Mon Oct 19 20:40:03 2020        
(r366859)
@@ -177,10 +177,6 @@ perftest(const struct cmd *f, int argc, char *argv[])
                arg_help(argc, argv, f);
        }
        io_test.time = opt.time;
-       if (opt.size < 0) {
-               fprintf(stderr, "Invalid size.\n");
-               arg_help(argc, argv, f);
-       }
        io_test.size = opt.size;
        open_dev(opt.dev, &fd, 1, 1);
        if (ioctl(fd, ioctl_cmd, &io_test) < 0)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to