aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ft2232_spi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 95584aa4..5c4d06bd 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -321,9 +321,8 @@ int ft2232_spi_init(void)
"Valid are even values between 2 and 131072.\n", arg);
free(arg);
return -2;
- } else {
- divisor = (uint32_t)temp;
}
+ divisor = (uint32_t)temp;
}
free(arg);
@@ -336,11 +335,10 @@ int ft2232_spi_init(void)
"Valid values are between 0 and 3.\n", arg);
free(arg);
return -2;
- } else {
- unsigned int pin = temp + 4;
- cs_bits |= 1 << pin;
- pindir |= 1 << pin;
}
+ unsigned int pin = temp + 4;
+ cs_bits |= 1 << pin;
+ pindir |= 1 << pin;
}
free(arg);