瀏覽代碼

Staging: rt2860: usb_main_dev: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Kulikov Vasiliy 15 年之前
父節點
當前提交
ef7d8ba135
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      drivers/staging/rt2860/usb_main_dev.c

+ 4 - 4
drivers/staging/rt2860/usb_main_dev.c

@@ -421,8 +421,8 @@ int MlmeThread(IN void *Context)
 	int status;
 	int status;
 	status = 0;
 	status = 0;
 
 
-	pTask = (struct rt_rtmp_os_task *)Context;
-	pAd = (struct rt_rtmp_adapter *)pTask->priv;
+	pTask = Context;
+	pAd = pTask->priv;
 
 
 	RtmpOSTaskCustomize(pTask);
 	RtmpOSTaskCustomize(pTask);
 
 
@@ -490,8 +490,8 @@ int RTUSBCmdThread(IN void *Context)
 	int status;
 	int status;
 	status = 0;
 	status = 0;
 
 
-	pTask = (struct rt_rtmp_os_task *)Context;
-	pAd = (struct rt_rtmp_adapter *)pTask->priv;
+	pTask = Context;
+	pAd = pTask->priv;
 
 
 	RtmpOSTaskCustomize(pTask);
 	RtmpOSTaskCustomize(pTask);