Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 196a4f82 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

fs/affs/symlink.c: remove unneeded err variable



err is only assigned to -EIO.  Return that value at the end of fail
context.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4709187e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
@@ -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 = {