From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH v4] rsi: remove set but not used variables 'header_size' and 'tx_params' Date: Tue, 4 Sep 2018 08:17:25 +0000 (UTC) Message-ID: <20180904081725.9B421603D2@smtp.codeaurora.org> References: <1535788107-171830-1-git-send-email-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Pavani Muthyala , Kees Cook , Colin Ian King , Amitkumar Karwar , Prameela Rani Garnepudi , Siva Rebbagondla , Sushant Kumar Mishra , YueHaibing , , , To: YueHaibing Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:48658 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbeIDMl1 (ORCPT ); Tue, 4 Sep 2018 08:41:27 -0400 In-Reply-To: <1535788107-171830-1-git-send-email-yuehaibing@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/wireless/rsi/rsi_91x_hal.c: In function 'rsi_send_data_pkt': > drivers/net/wireless/rsi/rsi_91x_hal.c:288:5: warning: > variable 'header_size' set but not used [-Wunused-but-set-variable] > > 'tx_params' only used for 'header_size' dereferenced,so also > can be removed. > > Signed-off-by: YueHaibing Patch applied to wireless-drivers-next.git, thanks. ec7eccf7ad1c rsi: remove set but not used variables 'header_size' and 'tx_params' -- https://patchwork.kernel.org/patch/10584631/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches