Remove check for valid log pages. Let the drive tell us which pages

are valid or not. While many pages are reserved in the standard, that
doesn't make them invalid and future versions of the standard may
define then.

Sponsored by: Netflix, Inc
This commit is contained in:
Warner Losh 2016-11-19 17:12:28 +00:00
parent 8b560139a2
commit fbc3f2995e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308848

View File

@ -262,14 +262,6 @@ logpage(int argc, char *argv[])
"\"%s\" not valid log page id.\n",
optarg);
logpage_usage();
/* TODO: Define valid log page id ranges in nvme.h? */
} else if (log_page == 0 ||
(log_page >= 0x04 && log_page <= 0x7F) ||
(log_page >= 0x80 && log_page <= 0xBF)) {
fprintf(stderr,
"\"%s\" not valid log page id.\n",
optarg);
logpage_usage();
}
pageflag = true;
break;