Skip to content
Commit c1ec8fc3 authored by Laszlo Papp's avatar Laszlo Papp Committed by Lee Jones
Browse files

mfd: max8997: Enforce mfd_add_devices() return value check



The original author provided a random return value check which is
redundant and seemingly floating. This patch not only relocates
the check so it is more clearly associated with the invokation of
mfd_add_devices(), but provides a store for the error value. We
also print a meaningful message on error before returning.

Signed-off-by: default avatarLaszlo Papp <lpapp@kde.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent db9ef449
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