[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1210606850.25310.14.camel@odie.local>
Date: Mon, 12 May 2008 17:40:50 +0200
From: Simon Holm Thøgersen <odie@...aau.dk>
To: Julia Lawall <julia@...u.dk>
Cc: tony.luck@...el.com, linux-ia64@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH] Remove NULL pointer check for argument never passed as
NULL.
There is only palinfo_handle_smp as (indirect) user of palinfo_smp_call (by
way of smp_call_function_single) and surely palinfo_handle_smp never pass
NULL as parameter for info.
Signed-off-by: Simon Holm Thøgersen <odie@...aau.dk>
---
arch/ia64/kernel/palinfo.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c
index 4547a20..9dc00f7 100644
--- a/arch/ia64/kernel/palinfo.c
+++ b/arch/ia64/kernel/palinfo.c
@@ -900,12 +900,6 @@ static void
palinfo_smp_call(void *info)
{
palinfo_smp_data_t *data = (palinfo_smp_data_t *)info;
- if (data == NULL) {
- printk(KERN_ERR "palinfo: data pointer is NULL\n");
- data->ret = 0; /* no output */
- return;
- }
- /* does this actual call */
data->ret = (*data->func)(data->page);
}
--
1.5.5.1.125.gc697a
--
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