staging: rtl8723au: Remove redundant casting in rtw_mlme.c
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 29 May 2014 11:35:19 +0000 (17:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:09:49 +0000 (14:09 -0700)
Casting value returned by kzalloc 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 ab95ef0..799338b 100644 (file)
@@ -1820,7 +1820,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
        struct cmd_priv *pcmdpriv = &adapter->cmdpriv;
        int res = _SUCCESS;
 
-       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;