From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753932AbbAaQSS (ORCPT ); Sat, 31 Jan 2015 11:18:18 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:46536 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752865AbbAaQSR (ORCPT ); Sat, 31 Jan 2015 11:18:17 -0500 Date: Sat, 31 Jan 2015 19:18:10 +0300 From: Dan Carpenter To: Rickard Strandqvist Cc: Greg Kroah-Hartman , navin patidar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Elena Oat , Larry Finger Subject: Re: [PATCH] staging: rtl8188eu: core: rtw_mlme: Removed variables that is never used Message-ID: <20150131161810.GE6456@mwanda> References: <1422715473-703-1-git-send-email-rickard_strandqvist@spectrumdigital.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1422715473-703-1-git-send-email-rickard_strandqvist@spectrumdigital.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 31, 2015 at 03:44:33PM +0100, Rickard Strandqvist wrote: > Variable was assigned a value that was never used. > I have also removed all the code that thereby serves no purpose. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > --- > @@ -2042,7 +2039,7 @@ void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len) > phtpriv->rx_ampdu_maxlen = max_ampdu_sz; > } > len = 0; > - p = rtw_get_ie(pie+sizeof(struct ndis_802_11_fixed_ie), _HT_ADD_INFO_IE_, &len, ie_len-sizeof(struct ndis_802_11_fixed_ie)); > + rtw_get_ie(pie+sizeof(struct ndis_802_11_fixed_ie), _HT_ADD_INFO_IE_, &len, ie_len-sizeof(struct ndis_802_11_fixed_ie)); Nope. And delete the "len = 0" line as well. Rickard, these are too many patches and you didn't think about them carefully enough. I'm not reviewing the rest. regards, dan carpenter