From 53c6440044f693b6a773552764363725ed9f2d1c Mon Sep 17 00:00:00 2001
From: Thomas Jahns <jahns@dkrz.de>
Date: Fri, 8 Apr 2016 14:28:41 +0000
Subject: [PATCH] Abbreviate assignment.

---
 src/stream_cdf.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/stream_cdf.c b/src/stream_cdf.c
index 33efef74d..130419a36 100644
--- a/src/stream_cdf.c
+++ b/src/stream_cdf.c
@@ -3836,8 +3836,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
               if ( ncvars[ncvarid].lvalidrange == FALSE )
                 {
                   extern int cdiIgnoreValidRange;
-                  int lignore = FALSE;
-                  if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
+                  int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
                   if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
                     {
                       cdfGetAttDouble(ncid, ncvarid, attname, 2, ncvars[ncvarid].validrange);
@@ -3857,8 +3856,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
               if ( ncvars[ncvarid].lvalidrange == FALSE )
                 {
                   extern int cdiIgnoreValidRange;
-                  int lignore = FALSE;
-                  if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
+                  int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
                   if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
                     {
                       cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[0]);
@@ -3875,8 +3873,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
               if ( ncvars[ncvarid].lvalidrange == FALSE )
                 {
                   extern int cdiIgnoreValidRange;
-                  int lignore = FALSE;
-                  if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
+                  int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
                   if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
                     {
                       cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[1]);
-- 
GitLab