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

Commit efaa1a4a authored by Pan Bian's avatar Pan Bian Committed by Greg Kroah-Hartman
Browse files

staging: iio: cdc: fix improper return value




[ Upstream commit 91ca1a8c584f55857b1f6ab20a1d3a1ce7a559bb ]

At the end of function ad7150_write_event_config(), directly returns 0.
As a result, the errors will be ignored by the callers. It may be better
to return variable "ret".

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1171ebb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment