Prev: [PATCH 19/36] drivers/usb/gadget: Remove unnecessary casts of private_data
Next: [PATCH 12/36] drivers/misc: Remove unnecessary casts of private_data
From: Joe Perches on 12 Jul 2010 17:00 Signed-off-by: Joe Perches <joe(a)perches.com> --- 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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |