diff options
author | Lin Feng <linf@wangsu.com> | 2022-06-17 12:17:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-27 17:44:40 +0300 |
commit | dcab8da13ff4886aab26348b925d20dca4f12bac (patch) | |
tree | 33964de878c18c129724a349f0b7d7ed06355e12 /fs/kernfs | |
parent | 70fe758352cafdee72a7b13bf9db065f9613ced8 (diff) | |
download | linux-dcab8da13ff4886aab26348b925d20dca4f12bac.tar.xz |
kernfs/file.c: remove redundant error return counter assignment
Since previous 'rc = -EINVAL;', rc value doesn't change, so not
necessary to re-assign it again.
Signed-off-by: Lin Feng <linf@wangsu.com>
Link: https://lore.kernel.org/r/20220617091746.206515-1-linf@wangsu.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs')
-rw-r--r-- | fs/kernfs/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index e3abfa843879..54b2a13ac9a2 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c @@ -484,7 +484,6 @@ static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma) * It is not possible to successfully wrap close. * So error if someone is trying to use close. */ - rc = -EINVAL; if (vma->vm_ops && vma->vm_ops->close) goto out_put; |