Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754379Ab0GLUul (ORCPT ); Mon, 12 Jul 2010 16:50:41 -0400 Received: from mail.perches.com ([173.55.12.10]:1727 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754169Ab0GLUuf (ORCPT ); Mon, 12 Jul 2010 16:50:35 -0400 From: Joe Perches To: Jiri Kosina Cc: linux-kernel@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, linux-s390@vger.kernel.org Subject: [PATCH 04/36] arch/s390: Remove unnecessary casts of private_data Date: Mon, 12 Jul 2010 13:49:56 -0700 Message-Id: X-Mailer: git-send-email 1.7.1.337.g6068.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 44 Signed-off-by: Joe Perches --- arch/s390/kernel/debug.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 9819226..39439c7 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -531,7 +531,7 @@ debug_output(struct file *file, /* file descriptor */ size_t entry_offset; file_private_info_t *p_info; - p_info = ((file_private_info_t *) file->private_data); + p_info = file->private_data; if (*offset != p_info->offset) return -EPIPE; if(p_info->act_area >= p_info->debug_info_snap->nr_areas) @@ -581,7 +581,7 @@ debug_input(struct file *file, const char __user *user_buf, size_t length, file_private_info_t *p_info; mutex_lock(&debug_mutex); - p_info = ((file_private_info_t *) file->private_data); + p_info = file->private_data; if (p_info->view->input_proc) rc = p_info->view->input_proc(p_info->debug_info_org, p_info->view, file, user_buf, @@ -671,7 +671,7 @@ static int debug_close(struct inode *inode, struct file *file) { file_private_info_t *p_info; - p_info = (file_private_info_t *) file->private_data; + p_info = file->private_data; if(p_info->debug_info_snap) debug_info_free(p_info->debug_info_snap); debug_info_put(p_info->debug_info_org); -- 1.7.1.337.g6068.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/