diff --git a/armsrc/i2c.c b/armsrc/i2c.c index 7e7ba4605..82b4fdb10 100644 --- a/armsrc/i2c.c +++ b/armsrc/i2c.c @@ -626,9 +626,8 @@ int I2C_get_version(uint8_t *maj, uint8_t *min) { *maj = resp[0]; *min = resp[1]; return PM3_SUCCESS; - } else { - return PM3_EDEVNOTSUPP; } + return PM3_EDEVNOTSUPP; } // Will read response from smart card module, retries 3 times to get the data.