Skip to contentSkip to conversation

drivers/block/acsi_slm.c: size_t can't be < 0

PATCH New Adrian Bunk 1 participant 1 message Mar 26, 2006 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/block/acsi_slm.c: size_t can't be < 0

From: Alexey Dobriyan <[email protected]>

A size_t can't be < 0.

drivers/block/acsi_slm.c +0 -2
@@ -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 );