Fix gcc-4.1 warnings (uninitialized variable). The variable is question
authorIan Abbott <abbotti@mev.co.uk>
Wed, 21 Jun 2006 16:07:01 +0000 (16:07 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 21 Jun 2006 16:07:01 +0000 (16:07 +0000)
has been removed, as it is only used on an unreachable path.  Also, don't
bother calling pcmcia_release_window() as there is no matching call to
pcmcia_request_window().

comedi/drivers/cb_das16_cs.c
comedi/drivers/das08_cs.c

index 6b8a12285f86891d764eaa1b307226d2af70713e..29e0f67559416278a71aeb1808975708c4dc5eff 100644 (file)
@@ -804,7 +804,6 @@ static void das16cs_pcmcia_config(dev_link_t *link)
        int last_fn, last_ret;
        u_char buf[64];
        config_info_t conf;
-       win_req_t req;
        cistpl_cftable_entry_t dflt = { 0 };
 
        DEBUG(0, "das16cs_pcmcia_config(0x%p)\n", link);
@@ -957,9 +956,6 @@ static void das16cs_pcmcia_config(dev_link_t *link)
        if (link->io.NumPorts2)
        printk(" & 0x%04x-0x%04x", link->io.BasePort2,
                        link->io.BasePort2+link->io.NumPorts2-1);
-       if (link->win)
-       printk(", mem 0x%06lx-0x%06lx", req.Base,
-                       req.Base+req.Size-1);
        printk("\n");
 
        link->state &= ~DEV_CONFIG_PENDING;
@@ -994,8 +990,6 @@ static void das16cs_pcmcia_release(u_long arg)
     */
 
     /* Don't bother checking to see if these succeed or not */
-       if (link->win)
-               pcmcia_release_window(link->win);
        pcmcia_release_configuration(link->handle);
        if (link->io.NumPorts1)
                pcmcia_release_io(link->handle, &link->io);
index e9d05911333ea9ac8aa141ab02a5070dc2252aba..8f7d2f3224f2b9080b3ebe74c32e6caa06faf085 100644 (file)
@@ -313,7 +313,6 @@ static void das08_pcmcia_config(dev_link_t *link)
        int last_fn, last_ret;
        u_char buf[64];
        config_info_t conf;
-       win_req_t req;
        cistpl_cftable_entry_t dflt = { 0 };
 
        DEBUG(0, "das08_pcmcia_config(0x%p)\n", link);
@@ -467,9 +466,6 @@ static void das08_pcmcia_config(dev_link_t *link)
        if (link->io.NumPorts2)
        printk(" & 0x%04x-0x%04x", link->io.BasePort2,
                        link->io.BasePort2+link->io.NumPorts2-1);
-       if (link->win)
-       printk(", mem 0x%06lx-0x%06lx", req.Base,
-                       req.Base+req.Size-1);
        printk("\n");
 
        link->state &= ~DEV_CONFIG_PENDING;
@@ -504,8 +500,6 @@ static void das08_pcmcia_release(u_long arg)
     */
 
     /* Don't bother checking to see if these succeed or not */
-       if (link->win)
-               pcmcia_release_window(link->win);
        pcmcia_release_configuration(link->handle);
        if (link->io.NumPorts1)
                pcmcia_release_io(link->handle, &link->io);