util/comm-dev.c: Re-check ioctl result
util/comm-dev.c: Re-check ioctl result

In methods ec_command_dev and v2, ioctl is called again if the first
call fails and the errno is EAGAIN. But the result of the second call
is not checked and no matter it succeeds or not, an error message is
printed.

BUG=b:243506182
BRANCH=None
TEST=None

Change-Id: I3ea75285c36f27d95561f4839ada859131d56dbf
Signed-off-by: Wen-Ting Tseng <9acb13c74a2c19d08f734ed33a3032b1501b0038@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3850561
Reviewed-by: Jack Rosenthal <d3f605bef1867f59845d4ce6e4f83b8dc9e4e0ae@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec