From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH] ipw2x00: remove redundant variables len, ret, reason and crypt Date: Tue, 31 Jul 2018 07:18:47 +0000 (UTC) Message-ID: <20180731071847.4839760397@smtp.codeaurora.org> References: <20180711071212.3018-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Stanislav Yakovlev , "David S . Miller" , linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Colin King Return-path: In-Reply-To: <20180711071212.3018-1-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Colin King wrote: > From: Colin Ian King > > Variables len, ret, reason and crypt are assigned values that > are never read, hence they are redundant and can be removed. > > Note: For the variable ret, a return code is being assigned, but > this is not returned and 0 is currently being returned, I believe > this is OK. > > Cleans up clang warnings: > warning: variable 'len' set but not used [-Wunused-but-set-variable] > variable 'ret' set but not used [-Wunused-but-set-variable] > warning: variable 'reason' set but not used [-Wunused-but-set-variable] > warning: variable 'crypt' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. 0e139e97f58e ipw2x00: remove redundant variables len, ret, reason and crypt -- https://patchwork.kernel.org/patch/10518849/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches