lkml.org 
[lkml]   [2005]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][3/3] pwc-uncompress cleanup - remove redundant casts.
This patch removes a few redundant casts from 
drivers/usb/media/pwc/pwc-uncompress.c

The patch is incremental on top of the previous [PATCH][2/3]


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
---

drivers/usb/media/pwc/pwc-uncompress.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

--- linux-2.6.12/drivers/usb/media/pwc/pwc-uncompress.c.with_patch_2 2005-06-20 22:58:38.000000000 +0200
+++ linux-2.6.12/drivers/usb/media/pwc/pwc-uncompress.c 2005-06-20 22:57:42.000000000 +0200
@@ -73,17 +73,17 @@ int pwc_decompress(struct pwc_device *pd
* We do some byte shuffling here to go from the
* native format to YUV420P.
*/
- src = (u16 *)yuv;
+ src = yuv;
n = pdev->view.x * pdev->view.y;

/* offset in Y plane */
stride = pdev->view.x * pdev->offset.y + pdev->offset.x;
- dsty = (u16 *)(image + stride);
+ dsty = image + stride;

/* offsets in U/V planes */
stride = pdev->view.x * pdev->offset.y / 4 + pdev->offset.x / 2;
- dstu = (u16 *)(image + n + stride);
- dstv = (u16 *)(image + n + n / 4 + stride);
+ dstu = image + n + stride;
+ dstv = image + n + n / 4 + stride;

/* increment after each line */
stride = (pdev->view.x - pdev->image.x) / 2; /* u16 = 2 bytes */



-
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/

\
 
 \ /
  Last update: 2005-06-20 23:25    [W:0.031 / U:0.736 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site