Delete invalid assignment statements in do_sendfile
authornixiaoming <nixiaoming@huawei.com>
Sun, 22 Jul 2018 08:37:08 +0000 (16:37 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Oct 2018 05:42:49 +0000 (01:42 -0400)
commit55338ac2a9839557516b00661e6a05daf996fda0
tree05dae4cbf78c273650e3c9f3b6d8ba20a23f4fe0
parentd65b1f20292425b798ec74e313a7ad3f11b8af0d
Delete invalid assignment statements in do_sendfile

Assigning value -EINVAL to "retval" here, but that stored value is
overwritten before it can be used.

retval = -EINVAL;
....
retval = rw_verify_area(WRITE, out.file, &out_pos, count);

value_overwrite: Overwriting previous write to "retval" with value
from rw_verify_area

delete invalid assignment statements

Signed-off-by: n00202754 <nixiaoming@huawei.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c