fs/affs/symlink.c: remove unneeded err variable
authorFabian Frederick <fabf@skynet.be>
Tue, 30 Jun 2015 21:58:01 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:57 +0000 (19:44 -0700)
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>
fs/affs/symlink.c

index f39b71c..ea5b69a 100644 (file)
@@ -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 = {