clean up some dead code

This commit is contained in:
Bert Vermeulen 2012-01-15 23:14:45 +01:00
parent 8f81fe8728
commit af1c793dfe
1 changed files with 1 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/*
* This file is part of the sigrok project.
*
* Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
* Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -101,11 +101,6 @@ int sr_filter_probes(int in_unitsize, int out_unitsize, const int *probelist,
return SR_ERR_ARG;
}
if (!length_out) {
sr_err("filter: %s: length_out was NULL", __func__);
return SR_ERR_ARG;
}
num_enabled_probes = 0;
for (i = 0; probelist[i]; i++)
num_enabled_probes++;