[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1306934105-6280-1-git-send-email-lucas.demarchi@profusion.mobi>
Date: Wed, 1 Jun 2011 10:15:05 -0300
From: Lucas De Marchi <lucas.demarchi@...fusion.mobi>
To: linux-kernel@...r.kernel.org
Cc: Nick Piggin <npiggin@...nel.dk>, Christoph Hellwig <hch@....de>,
Lucas De Marchi <lucas.demarchi@...fusion.mobi>
Subject: [PATCH] sysctl: remove impossible condition check
Signed-off-by: Lucas De Marchi <lucas.demarchi@...fusion.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists