From a172976fd2204d89aa181f58745bcc73a636748e Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 6 May 2016 22:05:57 +0200 Subject: [PATCH] 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. --- mt.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mt.c b/mt.c index 1304053..593b264 100644 --- a/mt.c +++ b/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;