summaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-08-01 10:51:17 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2022-09-09 01:39:36 +0200
commit9a5213593caa2ba7e13a24c86b55b04698d61d14 (patch)
treef9f11efb061f2f19a7e7984d3f54c1dca47700c0 /fs/proc/proc_sysctl.c
parentLinux 6.0-rc4 (diff)
downloadlinux-9a5213593caa2ba7e13a24c86b55b04698d61d14.tar.xz
linux-9a5213593caa2ba7e13a24c86b55b04698d61d14.zip
proc: remove initialization assignment
The allocation address of the core_parent pointer variable is first executed in the function, no initialization assignment is required. Signed-off-by: Li zeming <zeming@nfschina.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r--fs/proc/proc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 021e83fe831f..50ba9e4fb284 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -1246,7 +1246,7 @@ static bool get_links(struct ctl_dir *dir,
static int insert_links(struct ctl_table_header *head)
{
struct ctl_table_set *root_set = &sysctl_table_root.default_set;
- struct ctl_dir *core_parent = NULL;
+ struct ctl_dir *core_parent;
struct ctl_table_header *links;
int err;