aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/detector.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/detector.c b/src/detector.c
index 29c9fd24..96646dc1 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -412,18 +412,16 @@ struct panel *find_panel(struct detector *det, double fs, double ss)
int find_panel_number(struct detector *det, int fs, int ss)
{
- int p;
-
- for ( p=0; p<det->n_panels; p++ ) {
- if ( (fs >= det->panels[p].min_fs)
- && (fs <= det->panels[p].max_fs)
- && (ss >= det->panels[p].min_ss)
- && (ss <= det->panels[p].max_ss) ) {
- return p;
- }
- }
-
- return -1;
+ int p;
+
+ for ( p=0; p<det->n_panels; p++ ) {
+ if ( (fs >= det->panels[p].min_fs)
+ && (fs <= det->panels[p].max_fs)
+ && (ss >= det->panels[p].min_ss)
+ && (ss <= det->panels[p].max_ss) ) return p;
+ }
+
+ return -1;
}