Staging: Drop memory allocation cast
[safe/jmp/linux-2.6] / drivers / staging / rtl8192e / r8192E_core.c
index 604c691..533be48 100644 (file)
@@ -5040,7 +5040,7 @@ static int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
              goto out;
      }
 
-     ipw = (struct ieee_param *)kmalloc(p->length, GFP_KERNEL);
+     ipw = kmalloc(p->length, GFP_KERNEL);
      if (ipw == NULL){
              ret = -ENOMEM;
              goto out;