Add function return value, fixed compile error

This commit is contained in:
Derry 2021-01-25 08:15:46 -08:00
parent 2e236ad991
commit 114b438e25

View File

@ -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;
}