Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195867
b: refs/heads/master
c: 24c1549
h: refs/heads/master
i:
  195865: b08ea03
  195863: a91f612
v: v3
  • Loading branch information
Ben Hutchings authored and David Woodhouse committed Feb 25, 2010
1 parent 0b8f596 commit 7a062a4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e99e90aef17517d99be8e049b2f5cc563cd6862a
refs/heads/master: 24c15496771ea1f3902dee23f746042ba34dc2b8
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/devices/pmc551.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static int __init init_pmc551(void)
{
struct pci_dev *PCI_Device = NULL;
struct mypriv *priv;
int count, found = 0;
int found = 0;
struct mtd_info *mtd;
u32 length = 0;

Expand All @@ -695,7 +695,7 @@ static int __init init_pmc551(void)
/*
* PCU-bus chipset probe.
*/
for (count = 0; count < MAX_MTD_DEVICES; count++) {
for (;;) {

if ((PCI_Device = pci_get_device(PCI_VENDOR_ID_V3_SEMI,
PCI_DEVICE_ID_V3_SEMI_V370PDC,
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ static int mtd_open(struct inode *inode, struct file *file)

DEBUG(MTD_DEBUG_LEVEL0, "MTD_open\n");

if (devnum >= MAX_MTD_DEVICES)
return -ENODEV;

/* You can't open the RO devices RW */
if ((file->f_mode & FMODE_WRITE) && (minor & 1))
return -EACCES;
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/mtd/mtdoops.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,6 @@ static int __init mtdoops_init(void)
mtd_index = simple_strtoul(mtddev, &endp, 0);
if (*endp == '\0')
cxt->mtd_index = mtd_index;
if (cxt->mtd_index > MAX_MTD_DEVICES) {
printk(KERN_ERR "mtdoops: invalid mtd device number (%u) given\n",
mtd_index);
return -EINVAL;
}

cxt->oops_buf = vmalloc(record_size);
if (!cxt->oops_buf) {
Expand Down

0 comments on commit 7a062a4

Please sign in to comment.