mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
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.
This commit is contained in:
parent
8074c5cc86
commit
a35a97ae12
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue