summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-05-28 17:36:28 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 14:36:04 -0700
commit4947f5e4e9b4aac23f79c7cd0b7307ada0e5d49c (patch)
treefa6437cc36a7e618bbbda45ee3e93772e910c90a /drivers/staging
parente1a35432cde3cf805194ab685d294fd6ff9a0d87 (diff)
downloadlinux-4947f5e4e9b4aac23f79c7cd0b7307ada0e5d49c.tar.bz2
staging: rtl8723au: Remove redundant casting in rtw_xmit.c
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8723au/core/rtw_xmit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c
index d0dc6386d237..b917526f570a 100644
--- a/drivers/staging/rtl8723au/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723au/core/rtw_xmit.c
@@ -77,8 +77,7 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
_rtw_init_queue23a(&pxmitpriv->free_xmit_queue);
for (i = 0; i < NR_XMITFRAME; i++) {
- pxframe = (struct xmit_frame *)
- kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
+ pxframe = kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
if (!pxframe)
break;
INIT_LIST_HEAD(&pxframe->list);
@@ -127,8 +126,7 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
_rtw_init_queue23a(&pxmitpriv->free_xframe_ext_queue);
for (i = 0; i < num_xmit_extbuf; i++) {
- pxframe = (struct xmit_frame *)
- kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
+ pxframe = kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
if (!pxframe)
break;
INIT_LIST_HEAD(&pxframe->list);