From: Sudip Mukherjee Date: Mon, 8 Feb 2016 17:25:34 +0000 (+0530) Subject: staging: most: return error value X-Git-Tag: v4.6-rc1~103^2~968 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea39854712ba8a0757bc9fa6b6c17e8808bc6fda;p=platform%2Fkernel%2Flinux-exynos.git 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: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index 3a2dbf1..de4f76a 100644 --- a/drivers/staging/most/aim-cdev/cdev.c +++ b/drivers/staging/most/aim-cdev/cdev.c @@ -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; }