mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[NET]: Fix comparisons of unsigned < 0.
Recent gcc versions emit warnings when unsigned variables are compared < 0 or >= 0. Signed-off-by: Bill Nottingham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
60468d5b5b
commit
75202e7689
8 changed files with 7 additions and 19 deletions
|
|
@ -454,7 +454,7 @@ static int wanrouter_device_setup(struct wan_device *wandev,
|
|||
}
|
||||
|
||||
if (conf->data_size && conf->data) {
|
||||
if (conf->data_size > 128000 || conf->data_size < 0) {
|
||||
if (conf->data_size > 128000) {
|
||||
printk(KERN_INFO
|
||||
"%s: ERROR, Invalid firmware data size %i !\n",
|
||||
wandev->name, conf->data_size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue