Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195865
b: refs/heads/master
c: 677c2ae
h: refs/heads/master
i:
  195863: a91f612
v: v3
  • Loading branch information
Ben Hutchings authored and David Woodhouse committed Feb 25, 2010
1 parent 97aca26 commit b08ea03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 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: f1332ba2f23800bb5d52457ac150c568dfb1f3bf
refs/heads/master: 677c2aec8cdd5ae33b5fab266941cf6c6dc4d59f
18 changes: 6 additions & 12 deletions trunk/drivers/mtd/mtdsuper.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,12 @@ int get_sb_mtd(struct file_system_type *fs_type, int flags,
DEBUG(1, "MTDSB: mtd:%%s, name \"%s\"\n",
dev_name + 4);

for (mtdnr = 0; mtdnr < MAX_MTD_DEVICES; mtdnr++) {
mtd = get_mtd_device(NULL, mtdnr);
if (!IS_ERR(mtd)) {
if (!strcmp(mtd->name, dev_name + 4))
return get_sb_mtd_aux(
fs_type, flags,
dev_name, data, mtd,
fill_super, mnt);

put_mtd_device(mtd);
}
}
mtd = get_mtd_device_nm(dev_name + 4);
if (!IS_ERR(mtd))
return get_sb_mtd_aux(
fs_type, flags,
dev_name, data, mtd,
fill_super, mnt);

printk(KERN_NOTICE "MTD:"
" MTD device with name \"%s\" not found.\n",
Expand Down

0 comments on commit b08ea03

Please sign in to comment.