mirror of
https://github.com/iustin/mt-st.git
synced 2025-12-23 13:45:14 +00:00
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:
7
mt.c
7
mt.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user