mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
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 <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5fe36bf068
commit
ea39854712
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue