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

login
register
mail settings
Submitter Jeff Layton
Date March 21, 2010, 7:20 p.m.
Message ID <1269199227-21446-3-git-send-email-jlayton@redhat.com>
Download mbox | patch
Permalink /patch/48226/
State New
Headers show

Comments

Jeff Layton - March 21, 2010, 7:20 p.m.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 mount.cifs.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

Patch

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);