]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs/file.c: remove redundant error return counter assignment
authorLin Feng <linf@wangsu.com>
Fri, 17 Jun 2022 09:17:46 +0000 (17:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 14:44:40 +0000 (16:44 +0200)
commitc10e6ad04765312cac097fa3a1c5f776d2d3f7c2
tree33964de878c18c129724a349f0b7d7ed06355e12
parent5ac1ea23230ff7fb12b3f60a8226e43ce2367c66
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>
fs/kernfs/file.c