From: Laszlo Papp Date: Tue, 17 Dec 2013 12:49:51 +0000 (+0000) Subject: mfd: max8997: Enforce mfd_add_devices() return value check X-Git-Tag: v3.14-rc1~142^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1ec8fc308bb8171c76b5bed7f4028b6290e53f9;p=pandora-kernel.git 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 Signed-off-by: Lee Jones --- Reading git-diff-tree failed