Skip to content

Commit f39548a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-fixes-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-fixes-2.6: pcmcia: ide-cs: Remove outdated comment pcmcia: fix cisinfo_t removal pcmcia: fix return value in cm4000_cs.c
2 parents 2b04be7 + 417e149 commit f39548a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

drivers/char/pcmcia/cm4000_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
14391439
DEBUGP(4, dev, "CMM_ABSENT flag set\n");
14401440
goto out;
14411441
}
1442-
rc = EINVAL;
1442+
rc = -EINVAL;
14431443

14441444
if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) {
14451445
DEBUGP(4, dev, "ioctype mismatch\n");

drivers/ide/legacy/ide-cs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ MODULE_LICENSE("Dual MPL/GPL");
6666
#ifdef CONFIG_PCMCIA_DEBUG
6767
INT_MODULE_PARM(pc_debug, 0);
6868
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
69-
/*static char *version =
70-
"ide-cs.c 1.3 2002/10/26 05:45:31 (David Hinds)";*/
7169
#else
7270
#define DEBUG(n, args...)
7371
#endif

drivers/pcmcia/cistpl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, unsigned
14901490
((tuple->TupleCode > 0x90) && (tuple->TupleCode < 0xff)))
14911491
reserved++;
14921492
}
1493-
if ((count) || (reserved > 5) ||
1493+
if ((count == MAX_TUPLES) || (reserved > 5) ||
14941494
((!dev_ok || !ident_ok) && (count > 10)))
14951495
count = 0;
14961496

0 commit comments

Comments
 (0)