Commit ea398547 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

staging: most: return error value

On error we were returning retval, but retval is not having the error
value. We will get the error value using PTR_ERR.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5fe36bf0
......@@ -470,8 +470,8 @@ static int aim_probe(struct most_interface *iface, int channel_id,
NULL,
"%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);
goto error_create_device;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment