summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/mtd/ubi/debug.c')
-rw-r--r--kernel/drivers/mtd/ubi/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/mtd/ubi/debug.c b/kernel/drivers/mtd/ubi/debug.c
index b077e43b5..c4cb15a30 100644
--- a/kernel/drivers/mtd/ubi/debug.c
+++ b/kernel/drivers/mtd/ubi/debug.c
@@ -236,7 +236,7 @@ int ubi_debugfs_init(void)
dfs_rootdir = debugfs_create_dir("ubi", NULL);
if (IS_ERR_OR_NULL(dfs_rootdir)) {
- int err = dfs_rootdir ? -ENODEV : PTR_ERR(dfs_rootdir);
+ int err = dfs_rootdir ? PTR_ERR(dfs_rootdir) : -ENODEV;
pr_err("UBI error: cannot create \"ubi\" debugfs directory, error %d\n",
err);