From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] fjes: use currently unused variable my_epid and max_epid Date: Thu, 05 Jul 2018 19:35:01 +0900 (KST) Message-ID: <20180705.193501.2058429078262964742.davem@davemloft.net> References: <20180705100532.22277-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: colin.king@canonical.com Return-path: In-Reply-To: <20180705100532.22277-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Colin King Date: Thu, 5 Jul 2018 11:05:32 +0100 > From: Colin Ian King > > Variables my_epid and max_epid are currently assigned and not being > used - however, I suspect they were intended to be used in the for-loops > to reduce the dereferencing of hw. Replace hw->my_epid and hw->max_epid > with these variables. > > Cleans up clang warnings: > warning: variable 'my_epid' set but not used [-Wunused-but-set-variable] > variable 'max_epid' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Colin Ian King Applied.