lkml.org 
[lkml]   [2017]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-4.14-rc2/drivers/hwmon/pmbus/pmbus_core.c:1086]: (style) Redundant condition
On Mon, Sep 25, 2017 at 01:54:02PM +0000, David Binderman wrote:
>
> Hello there,
>
> linux-4.14-rc2/drivers/hwmon/pmbus/pmbus_core.c:1086]: (style) Redundant condition: upper. '!upper || (upper && data->has_status_word)' is equivalent to '!upper || data->has_status_word'
>
> Source code is
>
> (!upper || (upper && data->has_status_word)) &&
>
Please feel free to submit a patch.

Thanks,
Guenter

\
 
 \ /
  Last update: 2017-09-25 16:59    [W:0.034 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site