summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-08-01 11:51:17 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2022-09-09 02:39:36 +0300
commit9a5213593caa2ba7e13a24c86b55b04698d61d14 (patch)
treef9f11efb061f2f19a7e7984d3f54c1dca47700c0
parent7e18e42e4b280c85b76967a9106a13ca61c16179 (diff)
downloadlinux-9a5213593caa2ba7e13a24c86b55b04698d61d14.tar.xz
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>
-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;