Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Lin Feng and committed by
Greg Kroah-Hartman
dcab8da1 70fe7583

-1
-1
fs/kernfs/file.c
··· 484 484 * It is not possible to successfully wrap close. 485 485 * So error if someone is trying to use close. 486 486 */ 487 - rc = -EINVAL; 488 487 if (vma->vm_ops && vma->vm_ops->close) 489 488 goto out_put; 490 489