Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57351
b: refs/heads/master
c: 718ea83
h: refs/heads/master
i:
  57349: e60f207
  57347: 91d588e
  57343: f802f7a
v: v3
  • Loading branch information
David Woodhouse committed Jun 1, 2007
1 parent 769c5ed commit 9e1f44b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ea55d30798ac206c9f584ac264b6b8eb093d237a
refs/heads/master: 718ea8361b15aec5f4cb559d63ba34bc5a58d8f9
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/mtdsuper.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ static int get_sb_mtd_nr(struct file_system_type *fs_type, int flags,
struct mtd_info *mtd;

mtd = get_mtd_device(NULL, mtdnr);
if (!mtd) {
if (IS_ERR(mtd)) {
DEBUG(0, "MTDSB: Device #%u doesn't appear to exist\n", mtdnr);
return -EINVAL;
return PTR_ERR(mtd);
}

return get_sb_mtd_aux(fs_type, flags, dev_name, data, mtd, fill_super,
Expand Down Expand Up @@ -145,7 +145,7 @@ int get_sb_mtd(struct file_system_type *fs_type, int flags,

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

0 comments on commit 9e1f44b

Please sign in to comment.