From cb593014483414bdbffabba3ec6c97ef7a58d6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=E9phane=20Voltz?= Date: Sun, 2 Aug 2009 21:27:27 +0200 Subject: [PATCH] remove WARMING_UP_STATUS usage --- frontend/tstbackend.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/frontend/tstbackend.c b/frontend/tstbackend.c index f99a4acbf..4bc038c3e 100644 --- a/frontend/tstbackend.c +++ b/frontend/tstbackend.c @@ -1177,10 +1177,7 @@ static void test_scan(SANE_Handle device) check(MSG, 0, "TEST: scan byte per byte - %s", display_scan_parameters(device)); test_parameters(device, ¶ms); - do { - status = sane_start (device); - } - while (status == SANE_STATUS_WARMING_UP); + status = sane_start (device); rc = check(ERR, (status == SANE_STATUS_GOOD), "cannot start the scan (%s)", sane_strstatus (status)); if (!rc) goto the_end; @@ -1286,10 +1283,7 @@ static void test_scan(SANE_Handle device) */ check(MSG, 0, "TEST: partial scan - %s", display_scan_parameters(device)); - do { - status = sane_start (device); - } - while (status == SANE_STATUS_WARMING_UP); + status = sane_start (device); rc = check(ERR, (status == SANE_STATUS_GOOD), "cannot start the scan (%s)", sane_strstatus (status)); if (!rc) goto the_end; @@ -1326,10 +1320,7 @@ static void test_scan(SANE_Handle device) check(ERR, (status != SANE_STATUS_GOOD), "it is possible to sane_read outside a scan"); - do { - status = sane_start (device); - } - while (status == SANE_STATUS_WARMING_UP); + status = sane_start (device); rc = check(ERR, (status == SANE_STATUS_GOOD), "cannot start the scan (%s)", sane_strstatus (status)); if (!rc) goto the_end; @@ -1413,10 +1404,7 @@ static void test_scan(SANE_Handle device) test_parameters(device, ¶ms); - do { - status = sane_start (device); - } - while (status == SANE_STATUS_WARMING_UP); + status = sane_start (device); rc = check(ERR, (status == SANE_STATUS_GOOD), "cannot start the scan (%s)", sane_strstatus (status)); if (!rc) goto the_end;