diff options
author | Alexey Dobriyan <adobriyan@mail.ru> | 2006-03-28 04:56:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 12:16:03 -0500 |
commit | fa8f399a2bc36c1329672400857757e0982babf3 (patch) | |
tree | f3a6ffdfa3cb45647112aaf8a6d0ae749f69f87b | |
parent | e51236092d2f7e40e87e88804b5b42e5f8025415 (diff) |
[PATCH] drivers/block/acsi_slm.c: size_t can't be < 0
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>
-rw-r--r-- | drivers/block/acsi_slm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c index a5c1c8e871ec..4cb9c1336287 100644 --- a/drivers/block/acsi_slm.c +++ b/drivers/block/acsi_slm.c | |||
@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count, | |||
369 | int length; | 369 | int length; |
370 | int end; | 370 | int end; |
371 | 371 | ||
372 | if (count < 0) | ||
373 | return( -EINVAL ); | ||
374 | if (!(page = __get_free_page( GFP_KERNEL ))) | 372 | if (!(page = __get_free_page( GFP_KERNEL ))) |
375 | return( -ENOMEM ); | 373 | return( -ENOMEM ); |
376 | 374 | ||