staging: rtl8723au: Remove redundant casting in rtw_mlme.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:24 +0000 (17:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:36:03 +0000 (14:36 -0700)
Casting value returned by k[cmz]alloc is useless.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c

index 547986ac0102011ad6c91239c4a2988e42abd4ad..7170258d260123b1392232bdc3c235bc888da28e 100644 (file)
@@ -1824,8 +1824,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
                goto exit;
        }
 
-       psetauthparm = (struct setauth_parm*)
-               kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
+       psetauthparm = kzalloc(sizeof(struct setauth_parm), GFP_KERNEL);
        if (!psetauthparm) {
                kfree(pcmd);
                res = _FAIL;
@@ -1866,7 +1865,7 @@ int rtw_set_key23a(struct rtw_adapter *adapter,
                goto exit;
        }
 
-       pcmd = (struct cmd_obj *)kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
+       pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
        if (!pcmd) {
                res = _FAIL;  /* try again */
                goto exit;