Commit 1f032b3b authored by Federico Vaga's avatar Federico Vaga

tools: remove useless condition

a channel cannot be less than 0 due to data type (uint16_t). If someone
write a negative number this become something greater than 4 so the
control still works
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 2b85fda2
......@@ -79,7 +79,6 @@ static int scan_pulse(int argc, char **argv)
return -1;
}
if (sscanf(argv[1], "%hi%c", &cmd->channel, &c) != 1
|| cmd->channel < 0
|| cmd->channel > 4) {
fprintf(stderr, "%s: %s: not a channel number \"%s\"\n",
prgname, argv[0], argv[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment