[PATCH] remove needless check in fs/read_write.c

nr_segs is unsigned long and thus cannot be negative.  We checked against 0
few lines before.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Tento commit je obsažen v:
Carsten Otte
2006-03-25 03:08:23 -08:00
odevzdal Linus Torvalds
rodič 5514854812
revize 6cc6b1226b

Zobrazit soubor

@@ -470,7 +470,7 @@ static ssize_t do_readv_writev(int type, struct file *file,
* verify all the pointers
*/
ret = -EINVAL;
if ((nr_segs > UIO_MAXIOV) || (nr_segs <= 0))
if (nr_segs > UIO_MAXIOV)
goto out;
if (!file->f_op)
goto out;