Skip to content
Commit f01a140a authored by Lee Jones's avatar Lee Jones Committed by Jonathan Cameron
Browse files

iio: gyro-core: st: Clean up error handling in probe()



Reduce the amount of those unnecessary goto calls, as in most cases
we can simply return immediately. We also only call for the IRQ number
once and use that value throughout.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent cf4dd430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment