aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/socket_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/socket_sysfs.c')
-rw-r--r--drivers/pcmcia/socket_sysfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pcmcia/socket_sysfs.c b/drivers/pcmcia/socket_sysfs.c
index 562384d6f321..ff079987db1d 100644
--- a/drivers/pcmcia/socket_sysfs.c
+++ b/drivers/pcmcia/socket_sysfs.c
@@ -293,7 +293,7 @@ static ssize_t pccard_show_cis(struct kobject *kobj,
293 count = 0; 293 count = 0;
294 else { 294 else {
295 struct pcmcia_socket *s; 295 struct pcmcia_socket *s;
296 cisinfo_t cisinfo; 296 unsigned int chains;
297 297
298 if (off + count > size) 298 if (off + count > size)
299 count = size - off; 299 count = size - off;
@@ -302,9 +302,9 @@ static ssize_t pccard_show_cis(struct kobject *kobj,
302 302
303 if (!(s->state & SOCKET_PRESENT)) 303 if (!(s->state & SOCKET_PRESENT))
304 return -ENODEV; 304 return -ENODEV;
305 if (pccard_validate_cis(s, BIND_FN_ALL, &cisinfo)) 305 if (pccard_validate_cis(s, BIND_FN_ALL, &chains))
306 return -EIO; 306 return -EIO;
307 if (!cisinfo.Chains) 307 if (!chains)
308 return -ENODATA; 308 return -ENODATA;
309 309
310 count = pccard_extract_cis(s, buf, off, count); 310 count = pccard_extract_cis(s, buf, off, count);