2010-06-29 10:16:20

by Kulikov Vasiliy

[permalink] [raw]
Subject: [PATCH 20/25] usb_main_dev: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <[email protected]>
---
drivers/staging/rt2860/usb_main_dev.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rt2860/usb_main_dev.c b/drivers/staging/rt2860/usb_main_dev.c
index b740662..40eab25 100644
--- a/drivers/staging/rt2860/usb_main_dev.c
+++ b/drivers/staging/rt2860/usb_main_dev.c
@@ -421,8 +421,8 @@ int MlmeThread(IN void *Context)
int status;
status = 0;

- pTask = (struct rt_rtmp_os_task *)Context;
- pAd = (struct rt_rtmp_adapter *)pTask->priv;
+ pTask = Context;
+ pAd = pTask->priv;

RtmpOSTaskCustomize(pTask);

@@ -490,8 +490,8 @@ int RTUSBCmdThread(IN void *Context)
int status;
status = 0;

- pTask = (struct rt_rtmp_os_task *)Context;
- pAd = (struct rt_rtmp_adapter *)pTask->priv;
+ pTask = Context;
+ pAd = pTask->priv;

RtmpOSTaskCustomize(pTask);

--
1.7.0.4


2010-06-30 00:02:54

by Simon Horman

[permalink] [raw]
Subject: Re: [PATCH 20/25] usb_main_dev: remove casts from void*

On Tue, Jun 29, 2010 at 02:16:12PM +0400, Kulikov Vasiliy wrote:
> Remove unnesessary casts from void*.

No objections here.

FWIW, Reviewed-by: Simon Horman <[email protected]>

> Signed-off-by: Kulikov Vasiliy <[email protected]>
> ---
> drivers/staging/rt2860/usb_main_dev.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/rt2860/usb_main_dev.c b/drivers/staging/rt2860/usb_main_dev.c
> index b740662..40eab25 100644
> --- a/drivers/staging/rt2860/usb_main_dev.c
> +++ b/drivers/staging/rt2860/usb_main_dev.c
> @@ -421,8 +421,8 @@ int MlmeThread(IN void *Context)
> int status;
> status = 0;
>
> - pTask = (struct rt_rtmp_os_task *)Context;
> - pAd = (struct rt_rtmp_adapter *)pTask->priv;
> + pTask = Context;
> + pAd = pTask->priv;
>
> RtmpOSTaskCustomize(pTask);
>
> @@ -490,8 +490,8 @@ int RTUSBCmdThread(IN void *Context)
> int status;
> status = 0;
>
> - pTask = (struct rt_rtmp_os_task *)Context;
> - pAd = (struct rt_rtmp_adapter *)pTask->priv;
> + pTask = Context;
> + pAd = pTask->priv;
>
> RtmpOSTaskCustomize(pTask);
>
> --
> 1.7.0.4