projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb8e30
)
kernfs: mount: Remove unnecessary ‘NULL’ values from knparent
author
Li zeming
<zeming@nfschina.com>
Mon, 15 Apr 2024 10:20:09 +0000
(18:20 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 4 May 2024 17:02:39 +0000
(19:02 +0200)
knparent is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link:
https://lore.kernel.org/r/20240415102009.9926-1-zeming@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/mount.c
patch
|
blob
|
history
diff --git
a/fs/kernfs/mount.c
b/fs/kernfs/mount.c
index e29f4edf9572e739c5da8e30f51ebfa05c4eb5ee..1358c21837f1a0fe1b109e39134e993d0ef83879 100644
(file)
--- a/
fs/kernfs/mount.c
+++ b/
fs/kernfs/mount.c
@@
-206,7
+206,7
@@
struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
struct super_block *sb)
{
struct dentry *dentry;
- struct kernfs_node *knparent
= NULL
;
+ struct kernfs_node *knparent;
BUG_ON(sb->s_op != &kernfs_sops);