From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sonic304-37.consmr.mail.ir2.yahoo.com ([77.238.179.162]:46450 "EHLO sonic304-37.consmr.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718AbdLDW6C (ORCPT ); Mon, 4 Dec 2017 17:58:02 -0500 Date: Mon, 4 Dec 2017 22:57:55 +0000 (UTC) From: Hin-Tak Leung Reply-To: Hin-Tak Leung To: Larry Finger , Kalle Valo , , , Colin King Cc: , Message-ID: <734417985.2789125.1512428275673@mail.yahoo.com> (sfid-20171204_235835_066209_C788887B) Subject: Re: [PATCH] rtlwifi: rtl818x: remove redundant check for cck_power > 15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 References: <734417985.2789125.1512428275673.ref@mail.yahoo.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: -------------------------------------------- On Tue, 14/11/17, Colin King wrote: =20 > From: Colin Ian King =20 > cck_poweri cannot be greated than 15 as > is derived from the bottom 4 bits > from riv->channels[channel - > 1].hw_value & 0xf.=C2=A0 Hence the check for it > being greater than 15 is redundant and > can be removed. =20 > Detected by CoverityScan, CID#744303 > ("Logically dead code") =20 > Signed-off-by: Colin Ian King =20 Acked-by: Hin-Tak Leung