Skip to contentSkip to conversation

gpio:Fix error handling in the function max732x_probe

PATCH Linus Walleij 1 participant 1 message Aug 26, 2015 1 message not in the archive GPIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Nicholas Krause

This fixes error handling in the function max732x_probe by checking if the calls to the function max732x_readb fail by returning a error code. If so we must immediately return to the caller of the function max732x_probe with the error code to signal a non recoverable has occurred when calling this function and the caller must handle it.

Stripped and rewrote the commit message a bit and applied.

Yours,
Linus Walleij