Re: [PATCH ethtool 3/7] ioctl: get rid of signed/unsigned comparison warnings
From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-08-10 14:19:27
From: Andrew Lunn <andrew@lunn.ch>
Date: 2020-08-10 14:19:27
- while (arg_num < ctx->argc) {
+ while (arg_num < (unsigned int)ctx->argc) {
Did you try changing ctx->argc to an unsigned int? I guess there would
be less casts that way, and it is a more logical type for this.
Andrew