Staging: rtl8192e: rtllib_softmac: Do not print message if kzalloc() failed.
PATCH 1/1 Staging: rtl8192e: rtllib_softmac: Do not print message if kzalloc() failed.
As kzalloc() has its own messges, so no need of error messsge after kzalloc() failed . Also removing the NULL test whose purpose is to print the error message only and not returning any error.
Signed-off-by Sandhya Bankar <[email protected]>
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +0 -2
@@ -2980,8 +2980,6 @@ void rtllib_softmac_init(struct rtllib_device *ieee)for (i =0 ; i <5 ; i++) ieee->seq_ctrl[i] =0 ; ieee->pDot11dInfo =kzalloc (sizeof (struct rt_dot11d_info ),GFP_ATOMIC ); -if (!ieee->pDot11dInfo) -netdev_err (ieee->dev,"Can't alloc memory for DOT11D\n" ); ieee->LinkDetectInfo.SlotIndex =0 ; ieee->LinkDetectInfo.SlotNum =2 ; ieee->LinkDetectInfo.NumRecvBcnInPeriod =0 ;
Signature · 1 line
1.8.3.4