fs/cachefiles/daemon.c: 3 * pointless test ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

1.

fs/cachefiles/daemon.c:225:14: warning: comparison of unsigned expression < 0 is
 always false [-Wtype-limits]

Source code is

    if (datalen < 0 || datalen> PAGE_SIZE - 1)
        return -EOPNOTSUPP;

but

   size_t datalen,


2.

fs/cachefiles/daemon.c:382:12: warning: comparison of unsigned expression < 0 is
 always false [-Wtype-limits]

3.

fs/cachefiles/daemon.c:454:12: warning: comparison of unsigned expression < 0 is
 always false [-Wtype-limits]

Duplicates


Regards

David Binderman


 		 	   		  

--
Linux-cachefs mailing list
Linux-cachefs@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cachefs




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]
  Powered by Linux