lkml.org 
[lkml]   [2010]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/36] drivers/ieee1394: Remove unnecessary casts of private_data
Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> drivers/ieee1394/dv1394.c | 4 ++--
> drivers/ieee1394/raw1394.c | 4 ++--
> drivers/ieee1394/video1394.c | 6 +++---
> 3 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c
> index f8fcbd0..c5a031b 100644
> --- a/drivers/ieee1394/dv1394.c
> +++ b/drivers/ieee1394/dv1394.c
> @@ -172,7 +172,7 @@ static DEFINE_SPINLOCK(dv1394_cards_lock);
>
> static inline struct video_card* file_to_video_card(struct file *file)
> {
> - return (struct video_card*) file->private_data;
> + return file->private_data;
[...]

Committed to linux1394-2.6.git.

drivers/ieee1394/ is both frozen and obsolete code that is scheduled for
removal. But this change is obvious enough to be applied nevertheless
before that code finally goes away.
--
Stefan Richter
-=====-==-=- -=== -==-=
http://arcgraph.de/sr/


\
 
 \ /
  Last update: 2010-07-13 10:29    [W:0.214 / U:0.452 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site