Bug 80491

Summary: pinctrl/pinctrl-msm.c: 2 * pointless code ?
Product: Drivers Reporter: David Binderman (dcb314)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: low CC: andrey_utkin
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.16-rc5 Subsystem:
Regression: No Bisected commit-id:

Description David Binderman 2014-07-17 14:35:58 UTC
1.

[linux-3.16-rc5/drivers/pinctrl/pinctrl-msm.c:145]: (style) Checking if unsigned variable 'mux_bit' is less than zero.

    if (WARN_ON(g->mux_bit < 0))
        return -EINVAL;

2.

[linux-3.16-rc5/drivers/pinctrl/pinctrl-msm.c:179]: (style) Checking if unsigned variable 'mux_bit' is less than zero.

Duplicate.
Comment 1 Andrey Utkin 2014-07-17 16:30:58 UTC
Thanks. https://patchwork.kernel.org/patch/4577141/