Skip to content

Commit 9a52135

Browse files
Li zemingmcgrof
authored andcommitted
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>
1 parent 7e18e42 commit 9a52135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/proc_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ static bool get_links(struct ctl_dir *dir,
12461246
static int insert_links(struct ctl_table_header *head)
12471247
{
12481248
struct ctl_table_set *root_set = &sysctl_table_root.default_set;
1249-
struct ctl_dir *core_parent = NULL;
1249+
struct ctl_dir *core_parent;
12501250
struct ctl_table_header *links;
12511251
int err;
12521252

0 commit comments

Comments
 (0)