[PATCH 23/25] staging/wlags49_h2: remove casts from void*

Kulikov Vasiliy segooon at gmail.com
Thu Jul 1 13:16:57 UTC 2010


Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon at gmail.com>
---
 drivers/staging/wlags49_h2/wl_netdev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c
index 1aa61db..df38402 100644
--- a/drivers/staging/wlags49_h2/wl_netdev.c
+++ b/drivers/staging/wlags49_h2/wl_netdev.c
@@ -1905,8 +1905,8 @@ int wl_rx_dma( struct net_device *dev )
     DBG_FUNC("wl_rx")
     DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev);
 
-    if((( lp = (struct wl_private *)dev->priv ) != NULL ) &&
-          !( lp->flags & WVLAN2_UIL_BUSY )) {
+    lp = dev->priv;
+    if (lp && !(lp->flags & WVLAN2_UIL_BUSY)) {
 
 #ifdef USE_RTS
         if( lp->useRTS == 1 ) {
-- 
1.7.0.4




More information about the devel mailing list