patch-2.4.7 linux/net/atm/mpoa_proc.c

Next file: linux/net/atm/proc.c
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/net/atm/mpoa_proc.c linux/net/atm/mpoa_proc.c
@@ -109,8 +109,6 @@
 	eg_cache_entry *eg_entry;
 	struct timeval now;
 	unsigned char ip_string[16];
-	if(count < 0)
-	        return -EINVAL;
 	if(count == 0)
 	        return 0;
 	page = get_free_page(GFP_KERNEL);
@@ -173,7 +171,6 @@
         char *page, c;
         const char *tmp;
 
-        if (nbytes < 0) return -EINVAL;
         if (nbytes == 0) return 0;
         if (nbytes >= PAGE_SIZE) nbytes = PAGE_SIZE-1;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)