diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2023-03-06 11:55:35 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2023-03-06 11:55:35 +0100 |
commit | c0aa5db5f27f069a50fa7f78732f18c7abb2bfda (patch) | |
tree | a5304e4e45113e0d21308abce302296d1eadf000 /camlibs | |
parent | 17bc4149da9cab810327de36d84506c096197a2a (diff) | |
download | libgphoto2-c0aa5db5f27f069a50fa7f78732f18c7abb2bfda.tar.gz |
remove incorrect superflous exit code. is handled below
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/ptp2/config.c | 3 |
1 files changed, 0 insertions, 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) { \ |