Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
196a4f82 4709187e

+1 -3
+1 -3
fs/affs/symlink.c
··· 16 16 struct inode *inode = page->mapping->host; 17 17 char *link = kmap(page); 18 18 struct slink_front *lf; 19 - int err; 20 19 int i, j; 21 20 char c; 22 21 char lc; 23 22 24 23 pr_debug("follow_link(ino=%lu)\n", inode->i_ino); 25 24 26 - err = -EIO; 27 25 bh = affs_bread(inode->i_sb, inode->i_ino); 28 26 if (!bh) 29 27 goto fail; ··· 64 66 SetPageError(page); 65 67 kunmap(page); 66 68 unlock_page(page); 67 - return err; 69 + return -EIO; 68 70 } 69 71 70 72 const struct address_space_operations affs_symlink_aops = {