From: Luis Henriques Date: Wed, 14 Aug 2013 22:10:06 +0000 (+0100) Subject: net: rfkill: Do not ignore errors from regulator_enable() X-Git-Tag: v3.12-rc1~132^2~84^2^2~56^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee08ab83d0378d922b67e7cf10bbec3e4ea343b;p=pandora-kernel.git net: rfkill: Do not ignore errors from regulator_enable() Function regulator_enable() may return an error that has to be checked. This patch changes function rfkill_regulator_set_block() so that it checks for the return code. Also, rfkill_data->reg_enabled is set to 'true' only if there is no error. This fixes the following compilation warning: net/rfkill/rfkill-regulator.c:43:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Luis Henriques Signed-off-by: Johannes Berg --- Reading git-diff-tree failed