Remove obsolete test from do_show_options()

Remove from do_show_options() the now obsolete kernel
version test that has never worked correctly. Problem
reported by Emmanuel Florac.
This commit is contained in:
Kai Mäkisara
2016-02-11 11:49:39 +02:00
committed by Iustin Pop
parent ffd5dadee3
commit b48a42742f

3
mt.c
View File

@@ -736,9 +736,6 @@ static int do_show_options(int mtfd, cmdef_tr *cmd, int argc, char **argv)
return 2;
}
sscanf(uts.release, "%d.%d.%d", &i, &tapeno, &tapemode);
if (i < 2 || tapeno < 6 || tapemode < 26)
printf("Your kernel (%d.%d.%d) may be too old for this command.\n",
i, tapeno, tapemode);
if (fstat(mtfd, &stat) < 0) {
perror(tape_name);