Remove obsolete calls to uname in do_show_options()

Commit b48a427 removed the actual kernel version checks, but forgot
the calls to populate the values themselves. Remove them as we don't
do anything with those values.
This commit is contained in:
Iustin Pop
2016-05-06 22:05:57 +02:00
parent 2299178287
commit a172976fd2

7
mt.c
View File

@@ -694,15 +694,8 @@ static int do_show_options(int mtfd,
{
int i, fd, options, tapeminor, tapeno, tapemode;
struct stat stat;
struct utsname uts;
char fname[100], buf[20];
if (uname(&uts) < 0) {
perror(tape_name);
return 2;
}
sscanf(uts.release, "%d.%d.%d", &i, &tapeno, &tapemode);
if (fstat(mtfd, &stat) < 0) {
perror(tape_name);
return 1;