Bug 80611

Summary: rxrpc/ar-key.c:349: pointless test ?
Product: Networking Reporter: David Binderman (dcb314)
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: low CC: andrey_utkin, szg00000
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.16-rc5 Tree: Mainline
Regression: No

Description David Binderman 2014-07-18 10:19:08 UTC
[linux-3.16-rc5/net/rxrpc/ar-key.c:349]: (style) Checking if unsigned variable 'n_elem' is less than zero.

    if (n_elem < 0 || n_elem > max_n_elem)
Comment 1 Andrey Utkin 2014-07-18 15:48:50 UTC
Thanks. https://patchwork.kernel.org/patch/4586041/