From 523fefa999ae2de901458f5fe2b5edc0b7d05448 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 18 Sep 2009 13:05:53 -0700 Subject: [PATCH] --- yaml --- r: 165869 b: refs/heads/master c: f9098980ffea9c749622ff8ddf3b6d5831902a46 h: refs/heads/master i: 165867: 64c8510e3af4e06685f70ce4cf4551866b3028f3 v: v3 --- [refs] | 2 +- trunk/fs/read_write.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 7f70022ee58c..8d49ae028788 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 42cb56ae2ab67390da34906b27bedc3f2ff1393b +refs/heads/master: f9098980ffea9c749622ff8ddf3b6d5831902a46 diff --git a/trunk/fs/read_write.c b/trunk/fs/read_write.c index 6c8c55dec2bc..3ac28987f22a 100644 --- a/trunk/fs/read_write.c +++ b/trunk/fs/read_write.c @@ -839,9 +839,6 @@ static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, max = min(in_inode->i_sb->s_maxbytes, out_inode->i_sb->s_maxbytes); pos = *ppos; - retval = -EINVAL; - if (unlikely(pos < 0)) - goto fput_out; if (unlikely(pos + count > max)) { retval = -EOVERFLOW; if (pos >= max)