login
Header Space

 
 

[IA64] Remove NULL pointer check for argument never passed as NULL.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Thursday, May 15, 2008 - 5:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7af1d7...
Commit:     7af1d7532b6cf905230c72c67ad85a480b122374
Parent:     0fb232fdb2a2674003ef4b874034e872b7256aa9
Author:     Simon Holm Thøgersen <odie@cs.aau.dk>
AuthorDate: Mon May 12 17:40:50 2008 +0200
Committer:  Tony Luck <tony.luck@intel.com>
CommitDate: Wed May 14 15:58:27 2008 -0700

    [IA64] 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@cs.aau.dk>
    Signed-off-by: Tony Luck <tony.luck@intel.com>
---
 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);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[IA64] Remove NULL pointer check for argument never passed a..., Linux Kernel Mailing List..., (Thu May 15, 5:00 pm)
speck-geostationary