From 114b438e25f747ca610feea504e213d5bcec4098 Mon Sep 17 00:00:00 2001 From: Derry Date: Mon, 25 Jan 2021 08:15:46 -0800 Subject: [PATCH] Add function return value, fixed compile error --- oaf/src/af_log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oaf/src/af_log.c b/oaf/src/af_log.c index 74e89fd..42e390e 100755 --- a/oaf/src/af_log.c +++ b/oaf/src/af_log.c @@ -53,7 +53,6 @@ static struct ctl_table_header *oaf_table_header; static int af_init_log_sysctl(void) { - struct ctl_table_header *hdr; oaf_table_header = register_sysctl_table(oaf_root_table); if (oaf_table_header == NULL){ printk("init log sysctl...failed\n"); @@ -72,8 +71,10 @@ static int af_fini_log_sysctl(void) int af_log_init(void){ af_init_log_sysctl(); + return 0; } int af_log_exit(void){ af_fini_log_sysctl(); + return 0; }