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

iio: accel-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 7885a8ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment