diff options
author | Yegor Yefremov <yegor_sub1@visionsystems.de> | 2010-09-30 14:14:22 +0200 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-09-30 14:14:22 +0200 |
commit | 6abb930af064fb1cf4177d32e2c7bfb89eee0fe5 (patch) | |
tree | e9e44b8926d94f31a78fdb3dd3c5e789427feb67 /ipc/shm.c | |
parent | 753419f59e10d7181e43f0b9cc5beff43ef3f7a4 (diff) | |
download | linux-6abb930af064fb1cf4177d32e2c7bfb89eee0fe5.tar.gz linux-6abb930af064fb1cf4177d32e2c7bfb89eee0fe5.tar.xz |
i2c-pca: Fix waitforcompletion() return value
ret is still -1, if during the polling read_byte() returns at once
with I2C_PCA_CON_SI set. So ret > 0 would lead *_waitforcompletion()
to return 0, in spite of the proper behavior.
The routine was rewritten, so that ret has always a proper value,
before returning.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: stable@kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions