All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sysctl: remove impossible condition check
@ 2011-06-01 13:15 Lucas De Marchi
  2011-06-01 13:25 ` Jesper Juhl
  0 siblings, 1 reply; 8+ messages in thread
From: Lucas De Marchi @ 2011-06-01 13:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Nick Piggin, Christoph Hellwig, Lucas De Marchi

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
---
 fs/proc/proc_sysctl.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 2e5d3ec..98e82d4 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -52,11 +52,8 @@ static struct ctl_table *find_in_table(struct ctl_table *p, struct qstr *name)
 {
 	int len;
 	for ( ; p->procname; p++) {
-
-		if (!p->procname)
-			continue;
-
 		len = strlen(p->procname);
+
 		if (len != name->len)
 			continue;
 
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-12  6:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 13:15 [PATCH] sysctl: remove impossible condition check Lucas De Marchi
2011-06-01 13:25 ` Jesper Juhl
2011-06-01 14:11   ` Lucas De Marchi
2011-06-02 13:40     ` Eric W. Biederman
2011-06-02 13:51       ` Lucas De Marchi
2011-06-02 16:00         ` Lucas De Marchi
     [not found]           ` <1307684165-14742-1-git-send-email-lucas.demarchi@profusion.mobi>
2011-06-10  7:56             ` Jesper Juhl
2011-06-12  6:02               ` Eric W. Biederman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.