aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-24 14:37:41 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:36 +0100
commit672bfa52da16a68536305a5b92ec6e56fac9585d (patch)
tree95cf37b040c9264b6597674e7cc9d3626b3fe0d7
parent011e2c2b877ec42654243d5a6b2b1841b3c04ce6 (diff)
Formatting
-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;
}