[PATCH 02/10] mount.cifs: remove unneeded uname call

Jeff Layton <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
---
 mount.cifs.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/mount.cifs.c b/mount.cifs.c
index dcd8584..e00375e 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1188,7 +1188,6 @@ int main(int argc, char ** argv)
 	size_t current_len;
 	int retry = 0; /* set when we have to retry mount with uppercase */
 	struct addrinfo *addrhead = NULL, *addr;
-	struct utsname sysinfo;
 	struct mntent mountent;
 	struct sockaddr_in *addr4 = NULL;
 	struct sockaddr_in6 *addr6 = NULL;
@@ -1209,12 +1208,6 @@ int main(int argc, char ** argv)
 	if(thisprogram == NULL)
 		thisprogram = "mount.cifs";
 
-	uname(&sysinfo);
-	/* BB add workstation name and domain and pass down */
-
-/* #ifdef _GNU_SOURCE
-	fprintf(stderr, " node: %s machine: %s sysname %s domain %s\n", sysinfo.nodename,sysinfo.machine,sysinfo.sysname,sysinfo.domainname);
-#endif */
 	if(argc > 2) {
 		dev_name = argv[1];
 		share_name = strndup(argv[1], MAX_UNC_LEN);
-- 
1.6.6.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.