diff options
| -rw-r--r-- | fs/romfs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c index ff1d3d42e72a..d8418782862b 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c | |||
| @@ -533,16 +533,14 @@ static int romfs_fill_super(struct super_block *sb, void *data, int silent) | |||
| 533 | 533 | ||
| 534 | root = romfs_iget(sb, pos); | 534 | root = romfs_iget(sb, pos); |
| 535 | if (IS_ERR(root)) | 535 | if (IS_ERR(root)) |
| 536 | goto error; | 536 | return PTR_ERR(root); |
| 537 | 537 | ||
| 538 | sb->s_root = d_make_root(root); | 538 | sb->s_root = d_make_root(root); |
| 539 | if (!sb->s_root) | 539 | if (!sb->s_root) |
| 540 | goto error; | 540 | return -ENOMEM; |
| 541 | 541 | ||
| 542 | return 0; | 542 | return 0; |
| 543 | 543 | ||
| 544 | error: | ||
| 545 | return -EINVAL; | ||
| 546 | error_rsb_inval: | 544 | error_rsb_inval: |
| 547 | ret = -EINVAL; | 545 | ret = -EINVAL; |
| 548 | error_rsb: | 546 | error_rsb: |
