[patch 8/8] openmosix/remove-kcom_node_find-useless-code.patch

Florian Delizy <[email protected]> Thu, 23 Nov 2006 19:39:32 +0100
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
This removes some useless code in kcom_node_find ..

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
remove-kcom_node_find-useless-code.patch (text/x-patch, 699 B)
Subject: [patch @num@/@total@] @name@

This removes some useless code in kcom_node_find .. 
Index: linux/hpc/kcom.c
===================================================================
--- linux.orig/hpc/kcom.c	2006-11-23 12:19:02.000000000 +0100
+++ linux/hpc/kcom.c	2006-11-23 18:37:51.000000000 +0100
@@ -615,15 +615,7 @@
  **/
 struct kcom_node *kcom_node_find(struct sockaddr *saddr)
 {
-	task_t *p=current;
-	struct kcom_node *node;
-	struct sockaddr_in *addr_tmp;
-	unsigned int addr;
-
-	addr_tmp=(struct sockaddr_in *)p->om.whereto;
-	addr=addr_tmp->sin_addr.s_addr;
-	node = __kcom_node_find(saddr);
-	return node;
+	return __kcom_node_find(saddr);
 }
 EXPORT_SYMBOL_GPL(kcom_node_find);