Commit e794c01b authored by Dan Carpenter's avatar Dan Carpenter Committed by Dominik Brodowski

pcmcia: add important if statement

There was a problem introduced in Jul 2008 by:
0e6f9d27 pcmcia: use pcmcia_loop_config in scsi pcmcia drivers
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 0d3a940d
...@@ -1717,6 +1717,7 @@ static int nsp_cs_config(struct pcmcia_device *link) ...@@ -1717,6 +1717,7 @@ static int nsp_cs_config(struct pcmcia_device *link)
cfg_mem->data = data; cfg_mem->data = data;
ret = pcmcia_loop_config(link, nsp_cs_config_check, cfg_mem); ret = pcmcia_loop_config(link, nsp_cs_config_check, cfg_mem);
if (ret)
goto cs_failed; goto cs_failed;
if (link->conf.Attributes & CONF_ENABLE_IRQ) { if (link->conf.Attributes & CONF_ENABLE_IRQ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment