pcmcia: pcmcia_config_loop() ConfigIndex unification
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / atmel_cs.c
index 263c36f7ee222378f328ff86277a5c0180c2627b..12efd44d64a1e0cc80d74086a80423aba6ca7643 100644 (file)
@@ -234,8 +234,6 @@ static int atmel_config_check(struct pcmcia_device *p_dev,
                *dflt = *cfg;
        if (cfg->index == 0)
                return -ENODEV;
-       p_dev->conf.ConfigIndex = cfg->index;
-
        /* Does this card need audio output? */
        if (cfg->flags & CISTPL_CFTABLE_AUDIO) {
                p_dev->conf.Attributes |= CONF_ENABLE_SPKR;