gpio:Fix error handling in the function max732x_irq_bus_sync_unlock
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Nicholas Krause
This fixes error handling in the function
max732x_irq_bus_sync_unlockby checking if the internal call in this function's while loop to the functionmax732x_gpio_direction_inputfailed by returning a error code and if so break out of this while immediately as we cannot continue after a failed call to this function before finally unlocking the locked mutex and returning to the caller of the function,max732x_irq_bus_sync_unlock.
Again a overlenghty one-line commit message.
The intent is also debattable. max732x_irq_bus_sync_unlock() returns void, so we have to way to inform the caller that some failure happened. In that case, isn't it better to keep doing the job as much as we can? max732x_gpio_direction_input() already signals errors, so all that we can do here is done already.