Skip to contentSkip to conversation

Kernel 2.4.x with CONFIG_PPP_FILTER (warning remove)

DISCUSSION magicfox 1 participant 1 message Jun 9, 2005 PPP protocol drivers and compressors

lore
Share & tools
lore

magicfox

author
#0 lore raw

Dears,

uprog.len is defined in struct as unsigned short and can't be > 65535. May be this legitime warning may be removed.

ppp_generic.c: In function `ppp_ioctl':
ppp_generic.c:662: warning: comparison is always true due to limited range of data type

- if (uprog.len > 0 && uprog.len < 65536) {
+ if (uprog.len > 0) {

Best regards.