Skip to content

Commit

Permalink
[PATCH] drivers/block/acsi_slm.c: size_t can't be < 0
Browse files Browse the repository at this point in the history
A size_t can't be < 0.

(akpm: and rw_verify_area() already did that check)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Mar 28, 2006
1 parent e512360 commit fa8f399
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/block/acsi_slm.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count,
int length;
int end;

if (count < 0)
return( -EINVAL );
if (!(page = __get_free_page( GFP_KERNEL )))
return( -ENOMEM );

Expand Down

0 comments on commit fa8f399

Please sign in to comment.