From c0aa5db5f27f069a50fa7f78732f18c7abb2bfda Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 6 Mar 2023 11:55:35 +0100 Subject: remove incorrect superflous exit code. is handled below --- camlibs/ptp2/config.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index c78e70830..4bdb14815 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -1356,14 +1356,12 @@ fallback: \ \ /* we tell the camera to do it, but it takes around 0.7 seconds for the SLT-A58 */ \ time(&start); \ - int matched = 0; \ do { \ C_PTP_REP (ptp_sony_getalldevicepropdesc (params)); \ C_PTP_REP (ptp_generic_getdevicepropdesc (params, prop, &dpd)); \ \ if (dpd.CurrentValue.bits == value) { \ GP_LOG_D ("Value matched!"); \ - matched = 1; \ break; \ } \ if (dpd.CurrentValue.bits != origval) { \ @@ -1375,7 +1373,6 @@ fallback: \ \ time(&end); \ } while (end-start <= 3); \ - if (matched) break; \ \ int overshoot = 0; \ if (useenumorder) { \ -- cgit v1.2.1