diff options
author | John Klug <john.klug@multitech.com> | 2018-04-16 15:28:56 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-04-19 08:19:30 -0500 |
commit | 4238a6ee2a92f1e376517eeff68e0dce594c35e3 (patch) | |
tree | fe95516d6af7c5f5504f5d2f889b4cd0d13be3c9 | |
parent | ef8a1a190b8f014364d69e2ab537df17c46e20c7 (diff) | |
download | mts-io-4238a6ee2a92f1e376517eeff68e0dce594c35e3.tar.gz mts-io-4238a6ee2a92f1e376517eeff68e0dce594c35e3.tar.bz2 mts-io-4238a6ee2a92f1e376517eeff68e0dce594c35e3.zip |
Undefined variable issue
-rw-r--r-- | io-module/mts_io.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 14029a3..c9a0c71 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -817,7 +817,7 @@ struct attribute *freelater = NULL; // Storage to free when driver is unloaded. static int mts_id_eeprom_load(void) { - int i; + int i, j = 0; char buf[64] = {0}; char* ptr; int attr_blength; // Byte length of base attribute array @@ -836,7 +836,6 @@ mts_id_eeprom_load(void) return -EIO; } else if (((tmp=HW_VERSION_MTCAP_0_0),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) || ((tmp=HW_VERSION_MTCAP_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) { - int j=0; /* See if we have no radio, and if so, prune out the stuff that follows */ if((strncmp(id_eeprom.product_id, PRODUCT_ID_MTCAP, sizeof PRODUCT_ID_MTCAP - 1) == 0) && (id_eeprom.product_id[sizeof PRODUCT_ID_MTCAP-1] == '-') && @@ -883,7 +882,6 @@ mts_id_eeprom_load(void) log_info("detected board %s", HW_VERSION_MTRV1_0_1); } else if (((tmp=HW_VERSION_MTCDT_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) || ((tmp=HW_VERSION_MTCDTIP_0_0),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) { - int j=0; attr_blength = sizeof mtcdt_0_1_platform_attributes; if(DEVICE_CAPA(id_eeprom.capa, CAPA_WIFI)) { attr_blength += sizeof mtcdt_0_1_wifi_bt_attributes; @@ -957,7 +955,6 @@ mts_id_eeprom_load(void) mtcdt_0_1_platform_attribute_group.attrs = all_attrs; } - int j=0; /* See if we have no radio, and if so, prune out the stuff that follows */ if((strncmp(id_eeprom.product_id, PRODUCT_ID_MTCDTIPHP, sizeof PRODUCT_ID_MTCDTIPHP - 1) == 0) && (id_eeprom.product_id[sizeof PRODUCT_ID_MTCDTIPHP-1] == '-') && |