[PATCH][3/3] pwc-uncompress cleanup - remove redundant casts.

From: Jesper Juhl
Date: Mon Jun 20 2005 - 16:23:15 EST


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@xxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/