lkml.org 
[lkml]   [2017]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rtlwifi: rtl818x: remove redundant check for cck_power > 15

--------------------------------------------
On Tue, 14/11/17, Colin King <colin.king@canonical.com> wrote:


> From: Colin Ian King <colin.king@canonical.com>

> cck_poweri cannot be greated than 15 as
> is derived from the bottom 4 bits
> from riv->channels[channel -
> 1].hw_value & 0xf.  Hence the check for it
> being greater than 15 is redundant and
> can be removed.

> Detected by CoverityScan, CID#744303
> ("Logically dead code")

> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>

\
 
 \ /
  Last update: 2017-12-04 23:59    [W:0.012 / U:0.476 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site