mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
The 'break' statement after calling ad5933_cmd only breaks out of the 'for' loop, which then unconditionally sets the return value to -EINVAL. Move the initialisation of 'ret' so we return the correct value. Signed-off-by: Phil Turnbull <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>