diff options
Diffstat (limited to 'drivers/ras')
-rw-r--r-- | drivers/ras/cec.c | 2 | ||||
-rw-r--r-- | drivers/ras/ras.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 6aab46d91d33..d0e5d6ee882c 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c @@ -481,7 +481,7 @@ static int __init create_debugfs_nodes(void) count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d, &count_threshold, &count_threshold_ops); - if (!decay) { + if (!count) { pr_warn("Error creating count_threshold debugfs node!\n"); goto err; } diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c index 39701a5c3f49..5429d3795732 100644 --- a/drivers/ras/ras.c +++ b/drivers/ras/ras.c @@ -43,7 +43,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event); EXPORT_TRACEPOINT_SYMBOL_GPL(non_standard_event); EXPORT_TRACEPOINT_SYMBOL_GPL(arm_event); -int __init parse_ras_param(char *str) +static int __init parse_ras_param(char *str) { #ifdef CONFIG_RAS_CEC parse_cec_param(str); |