commit | 772ae99c5b414fc7f5e4cf76beae7003196b5526 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wolfram@the-dreams.de> | Thu Apr 19 17:01:59 2012 +0200 |
committer | Wolfram Sang <w.sang@pengutronix.de> | Sat May 12 14:28:13 2012 +0200 |
tree | 05e1855591814dccc24dbf079b296697f0ec09df | |
parent | 75fb1f25d48b64ff11081623c2104ad345882c9f [diff] |
i2c: eg20t: pass on return value in i2c_xfer smatch says: drivers/i2c/busses/i2c-eg20t.c:702 pch_i2c_xfer() info: why not propagate 'ret' from mutex_lock_interruptible() instead of -512? which is especially true since for -ENORESTARTSYS it is said in linux/errno.h "signal_pending() MUST be set" which is not done here. So just pass on the return value we got. Signed-off-by: Wolfram Sang <wolfram@the-dreams.de> Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>