]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: max8997: Enforce mfd_add_devices() return value check
authorLaszlo Papp <lpapp@kde.org>
Tue, 17 Dec 2013 12:49:51 +0000 (12:49 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:10 +0000 (08:28 +0000)
commitfdc037ae809bfefc3f057e21650aed9ce70d6318
treecae119ca4ac650a4e0ca1e3822115a4c87b5ac77
parentfeb9683b5357bf66691cbb719673ce318bc57e1e
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: Laszlo Papp <lpapp@kde.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max8997.c