977
980
int ret, stat=SANE_STATUS_IO_ERROR;
979
982
DBG8("sane_hpaio_read() handle=%p data=%p maxLength=%d\n", (void *)handle, data, maxLength);
981
990
ret = get_ip_data(ps, data, maxLength, length);
983
992
if(ret & (IP_INPUT_ERROR | IP_FATAL_ERROR))