[PATCH 5/7] staging: rtl8723au: Remove redundant casting in rtw_xmit.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
---
 drivers/staging/rtl8723au/core/rtw_xmit.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c
index d0dc638..b917526 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);
-- 
1.7.9.5

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux