|
@@ -470,8 +470,8 @@ static int aim_probe(struct most_interface *iface, int channel_id,
|
|
NULL,
|
|
NULL,
|
|
"%s", name);
|
|
"%s", name);
|
|
|
|
|
|
- retval = IS_ERR(c->dev);
|
|
|
|
- if (retval) {
|
|
|
|
|
|
+ if (IS_ERR(c->dev)) {
|
|
|
|
+ retval = PTR_ERR(c->dev);
|
|
pr_info("failed to create new device node %s\n", name);
|
|
pr_info("failed to create new device node %s\n", name);
|
|
goto error_create_device;
|
|
goto error_create_device;
|
|
}
|
|
}
|