From: Li zeming Date: Mon, 1 Aug 2022 08:51:17 +0000 (+0800) Subject: proc: remove initialization assignment X-Git-Tag: v6.1-rc1~84^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a5213593caa2ba7e13a24c86b55b04698d61d14;p=thirdparty%2Flinux.git 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 Signed-off-by: Luis Chamberlain --- diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 021e83fe831f7..50ba9e4fb2848 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;