Platform: OLPC: Fix olpc_xo175_ec_cmd() return value
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 29 May 2019 08:34:03 +0000 (10:34 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 12 Jun 2019 08:53:10 +0000 (11:53 +0300)
commitfd43f16cca951b5eea6703f5f98381cf4883f86c
treec1b4968dc9eefcac9724cb2b2f99dd7567692f83
parentb8a84365bbff0f860c5dc5795405430d92d68966
Platform: OLPC: Fix olpc_xo175_ec_cmd() return value

Reset the ret variable to make sure it olpc_xo175_ec_cmd() ends up
returning zero on success.

Fixes: 0c3d931b3ab9 ("Platform: OLPC: Add XO-1.75 EC driver")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/olpc/olpc-xo175-ec.c