X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Finetdevice.h;h=770ecc90993bf8f9ddb2811f383ced4012fedada;hb=981250553d7fa27a1430a521d6f68b5eb7657f2a;hp=ea1e3b8638900a5d7f5cf46e49eec37c3274f9a9;hpb=d3c926264a92e5ea448add3e883530e1edad3ce2;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index ea1e3b863890..770ecc90993b 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -261,7 +261,7 @@ static inline void in_dev_put(struct in_device *idev) static __inline__ __be32 inet_make_mask(int logmask) { if (logmask) - return htonl(~((1<<(32-logmask))-1)); + return htonl(~((1U<<(32-logmask))-1)); return 0; }