diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 6aab46d91d3319d1d942e98b916c0eb0992c62f8..d0e5d6ee882c4e041d8c3db4e41392d9bc6d90ab 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; }