Skip to content
Snippets Groups Projects
Commit 9e533cb0 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Heiko Schocher
Browse files

cmd_i2c: quit I2C commands immediately on error


If the i2c driver returns an error status, error out immediately.
Continuing the loop just results in printing error messages
again and again.

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 1320112c
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment