diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-06-30 23:58:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 04:44:57 +0200 |
commit | 196a4f82bddb2c4cb23736c5d467abcb9e716c63 (patch) | |
tree | 5db6ebe56eb214c4ca38ed241e4e10cc5dff0de4 /fs/affs/symlink.c | |
parent | fs/affs/amigaffs.c: remove unneeded initialization (diff) | |
download | linux-196a4f82bddb2c4cb23736c5d467abcb9e716c63.tar.xz linux-196a4f82bddb2c4cb23736c5d467abcb9e716c63.zip |
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | fs/affs/symlink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/affs/symlink.c b/fs/affs/symlink.c index f39b71c3981e..ea5b69a18ba9 100644 --- a/fs/affs/symlink.c +++ b/fs/affs/symlink.c @@ -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 @@ fail: SetPageError(page); kunmap(page); unlock_page(page); - return err; + return -EIO; } const struct address_space_operations affs_symlink_aops = { |