diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-05-28 08:06:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 17:36:04 -0400 |
commit | 8f17a38c61a5954353c02bba8fc6537cd33e5dbe (patch) | |
tree | 487941475eb17d14a1d2205d5fe4d92679e9c7f2 | |
parent | 7b20f7b353445bb16eaf6474397fcd221a5dee88 (diff) |
staging: rtl8723au: Remove redundant casting in rtw_sta_mgt.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>
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_sta_mgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_sta_mgt.c b/drivers/staging/rtl8723au/core/rtw_sta_mgt.c index b829c2eb0c5a..14a82bea826f 100644 --- a/drivers/staging/rtl8723au/core/rtw_sta_mgt.c +++ b/drivers/staging/rtl8723au/core/rtw_sta_mgt.c | |||
@@ -116,7 +116,7 @@ rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, gfp_t gfp) | |||
116 | int i = 0; | 116 | int i = 0; |
117 | u16 wRxSeqInitialValue = 0xffff; | 117 | u16 wRxSeqInitialValue = 0xffff; |
118 | 118 | ||
119 | psta = (struct sta_info *)kmalloc(sizeof(struct sta_info), gfp); | 119 | psta = kmalloc(sizeof(struct sta_info), gfp); |
120 | if (!psta) | 120 | if (!psta) |
121 | return NULL; | 121 | return NULL; |
122 | 122 | ||