ocfs2: remove unnecessary NULL check before unregister_sysctl_table()
authorChen Ni <nichen@iscas.ac.cn>
Tue, 22 Apr 2025 07:30:51 +0000 (15:30 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:54:11 +0000 (17:54 -0700)
commit1785c67e2adc4d1899685b36dd10f7ebbf117178
treec0f9d0754477aa51360cede01652d6e33871d30f
parentcdc3ed3035d0fe934aa1d9b78ce256752fd3bb7d
ocfs2: remove unnecessary NULL check before unregister_sysctl_table()

unregister_sysctl_table() checks for NULL pointers internally.  Remove
unneeded NULL check here.

Link: https://lkml.kernel.org/r/20250422073051.1334310-1-nichen@iscas.ac.cn
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/stackglue.c