aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-21 14:14:33 +0200
committerThomas White <taw@physics.org>2021-07-21 15:34:33 +0200
commit49a64e6e63e2da019d7ee1d5900b72693b79818a (patch)
treee3f2d732184e91dc44bd08b7a967c2dfed48b1d3
parentac4198464791af645fc22b23110733f51c0cbc83 (diff)
do_integral: Remove unnecessary assignments
These local variables were being assigned just before returning.
-rw-r--r--libcrystfel/src/geometry.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index 49acc777..e454b73d 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -670,7 +670,6 @@ static double do_integral(double q2, double zl, double R,
if ( kmin < k1 ) {
if ( kmax < k1 ) {
/* Case 1 */
- kstart = k1; kfinis = k0;
return 0.0;
} else if ( kmax < k0 ) {
/* Case 2 (kmax > k1)*/
@@ -689,7 +688,6 @@ static double do_integral(double q2, double zl, double R,
}
} else {
/* Case 6 (kmin > k1 and (kmax>)kmin > k0) */
- kstart = k1; kfinis = k0;
return 0.0;
}