Skip to content

Commit

Permalink
removed duplicate stepsize 0 check (Coverity)
Browse files Browse the repository at this point in the history
1404896 Logically dead code
  • Loading branch information
msmeissn committed Jun 5, 2017
1 parent 3aa702c commit 1190d79
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions camlibs/ptp2/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 1190d79

Please sign in to comment.