mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
7b20f7b353
commit
8f17a38c61
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ rtw_alloc_stainfo23a(struct sta_priv *pstapriv, u8 *hwaddr, gfp_t gfp)
|
|||
int i = 0;
|
||||
u16 wRxSeqInitialValue = 0xffff;
|
||||
|
||||
psta = (struct sta_info *)kmalloc(sizeof(struct sta_info), gfp);
|
||||
psta = kmalloc(sizeof(struct sta_info), gfp);
|
||||
if (!psta)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue