Skip to content
Commit 02a0bf6e authored by Lee Jones's avatar Lee Jones
Browse files

mfd: ucb1x00-core: Rewrite ucb1x00_add_dev()



Error handling is on-its-head in this function. After invoking a function we
should examine the return code and return the error value if there was one.
Instead, this function checks for success and goes onto provide functionality
if success was received. Not so bad in a simple function like this, but in
a more complex one this could end up drowning in curly brackets.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d551c4c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment