Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e916b80d authored by Joe Perches's avatar Joe Perches Committed by Jonathan Cameron
Browse files

inkern: iio_device_put after incorrect return/goto



The code uses

    return foo;
    goto err_type;

when instead the form should have been

    ret = foo;
    goto err_type;

Here this causes a useful iio_device_put to be skipped.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 702df9f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment