host/lib/flashrom_drv.c: Check chip len symmetrically across R/W ops

Sometimes a servo will fail to probe the chip on a read and it
is unclear why from the logs.

Make error messages consistent and symmetrical across both read
and write operations for checking that a zero length chip was
not probed.

BUG=none
BRANCH=none
TEST=`cros_run_unit_tests --host --packages vboot_reference`.

Change-Id: I05b94eacfe4638ad3691f90cb80dbea57ad61ec8
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4592210
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Auto-Submit: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
1 file changed