summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/sbus/char/oradax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/oradax.c b/drivers/sbus/char/oradax.c
index 10452ae18ef1..03dc04739225 100644
--- a/drivers/sbus/char/oradax.c
+++ b/drivers/sbus/char/oradax.c
@@ -336,9 +336,9 @@ static int __init dax_attach(void)
}
cl = class_create(THIS_MODULE, DAX_NAME);
- if (cl == NULL) {
+ if (IS_ERR(cl)) {
dax_err("class_create failed");
- ret = -ENXIO;
+ ret = PTR_ERR(cl);
goto class_error;
}