Skip to content

Commit

Permalink
fs/affs/symlink.c: remove unneeded err variable
Browse files Browse the repository at this point in the history
err is only assigned to -EIO.  Return that value at the end of fail
context.

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jul 1, 2015
1 parent 4709187 commit 196a4f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/affs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ static int affs_symlink_readpage(struct file *file, struct page *page)
struct inode *inode = page->mapping->host;
char *link = kmap(page);
struct slink_front *lf;
int err;
int i, j;
char c;
char lc;

pr_debug("follow_link(ino=%lu)\n", inode->i_ino);

err = -EIO;
bh = affs_bread(inode->i_sb, inode->i_ino);
if (!bh)
goto fail;
Expand Down Expand Up @@ -66,7 +64,7 @@ static int affs_symlink_readpage(struct file *file, struct page *page)
SetPageError(page);
kunmap(page);
unlock_page(page);
return err;
return -EIO;
}

const struct address_space_operations affs_symlink_aops = {
Expand Down

0 comments on commit 196a4f8

Please sign in to comment.