altos: ao_storage_read already calls ao_storage_setup
authorKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2012 23:11:23 +0000 (16:11 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2012 23:11:23 +0000 (16:11 -0700)
No need to call twice.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_config.c

index 76a8ed4a3b37aaa9f2e912113b1f2f327f785f0b..a4877b069387eb54359c737bc8601be88a374e62 100644 (file)
@@ -81,7 +81,6 @@ _ao_config_get(void)
        if (ao_config_loaded)
                return;
 #if HAS_EEPROM
-       ao_storage_setup();
        ao_storage_read(ao_storage_config, &ao_config, sizeof (ao_config));
 #endif
        if (ao_config.major != AO_CONFIG_MAJOR) {