X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fread_write.c;h=3ac28987f22a38b3c2005a74e8ee3dac01621679;hb=ef61aae4ddf1dbd0e9b6ad21e2e57632a8fe76f6;hp=6c8c55dec2bcd6b2759f9698abab5b663258cc4b;hpb=debc6a6927dcd833a30750b07a4c2b456b71f1be;p=~andy%2Flinux diff --git a/fs/read_write.c b/fs/read_write.c index 6c8c55dec2b..3ac28987f22 100644 --- a/fs/read_write.c +++ b/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)