From 1190d79a4b7a1a1b72d00dacdc2d09834290f0ec Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 5 Jun 2017 18:09:47 +0200 Subject: [PATCH] removed duplicate stepsize 0 check (Coverity) 1404896 Logically dead code --- camlibs/ptp2/config.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 99896e661c..5a2a637f19 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -2891,9 +2891,6 @@ _get_Sharpness(CONFIG_GET_ARGS) { ((dpd->DataType == PTP_DTC_INT8) && (dpd->CurrentValue.i8 == i)) ) gp_widget_set_value (*widget, buf); - - /* malicious device might report stepsize 0 ... but lets do 1 cycle through the loop */ - if (s == 0) break; } }