Bug 80471

Summary: drivers/net/wireless/ath/ath9k/debug.c:205: pointless test ?
Product: Drivers Reporter: David Binderman (dcb314)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
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 12:51:51 UTC
[linux-3.16-rc5/drivers/net/wireless/ath/ath9k/debug.c:205]: (style) Checking if unsigned variable 'ani' is less than zero.

    if (ani < 0 || ani > 1)
        return -EINVAL;
Comment 1 Andrey Utkin 2014-07-17 14:04:59 UTC
Thanks, patch submitted: https://patchwork.kernel.org/patch/4575591/