Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f17a38c authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: Remove redundant casting in rtw_sta_mgt.c



Casting value returned by k[cmz]alloc is useless.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b20f7b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;