lkml.org 
[lkml]   [2010]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 04/36] arch/s390: Remove unnecessary casts of private_data
Date
Signed-off-by: Joe Perches <joe@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


\
 
 \ /
  Last update: 2010-07-12 22:59    [W:0.210 / U:9.180 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site