[2.6 patch] drivers/block/acsi_slm.c: size_t can't be < 0

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

 



From: Alexey Dobriyan <[email protected]>

A size_t can't be < 0.

Signed-off-by: Adrian Bunk <[email protected]>

--- linux-2.6.14-rc3-git3/drivers/block/acsi_slm.c	2005-10-04 19:24:01.000000000 +1000
+++ .6877.trivial/drivers/block/acsi_slm.c	2005-10-04 19:29:51.000000000 +1000
@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *fi
 	int length;
 	int end;
 
-	if (count < 0)
-		return( -EINVAL );
 	if (!(page = __get_free_page( GFP_KERNEL )))
 		return( -ENOMEM );
 	

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux