Re: [PATCH ethtool v2 4/9] ioctl: make argc counters unsigned

2020-08-23 Thread Andrew Lunn
On Sun, Aug 23, 2020 at 09:40:27PM +0200, Michal Kubecek wrote: > Use unsigned int for cmd_context::argc and local variables used for > command line argument count. These counters may never get negative and are > often compared to unsigned expressions. > > Signed-off-by: Michal Kubecek Reviewed-

[PATCH ethtool v2 4/9] ioctl: make argc counters unsigned

2020-08-23 Thread Michal Kubecek
Use unsigned int for cmd_context::argc and local variables used for command line argument count. These counters may never get negative and are often compared to unsigned expressions. Signed-off-by: Michal Kubecek --- ethtool.c | 24 internal.h | 2 +- 2 files changed,