i2c: tegra: Handle potential error of tegra_i2c_flush_fifos()
authorDmitry Osipenko <digetx@gmail.com>
Tue, 29 Sep 2020 22:18:46 +0000 (01:18 +0300)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Oct 2020 20:57:39 +0000 (22:57 +0200)
commitc5418d4cc9f028f3f0fc61c62c781e020113108f
tree106a0f4e8e8236384ccda067b3ad6ebf167a1001
parente4fc2efbc310cfb665eed558da42ac18084d20bc
i2c: tegra: Handle potential error of tegra_i2c_flush_fifos()

Technically the tegra_i2c_flush_fifos() may fail and transfer should be
aborted in this case, but this shouldn't ever happen in practice unless
there is a bug somewhere in the driver. Let's add the error check just
for completeness.

Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c