]> git.baikalelectronics.ru Git - kernel.git/commitdiff
coda: remove err which no one care
authorAlex Shi <alex.shi@linux.alibaba.com>
Tue, 9 Nov 2021 02:34:36 +0000 (18:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Nov 2021 18:02:51 +0000 (10:02 -0800)
No one care 'err' in func coda_release, so better remove it.

Link: https://lkml.kernel.org/r/20210908140308.18491-4-jaharkes@cs.cmu.edu
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Jing Yangyang <jing.yangyang@zte.com.cn>
Cc: Xin Tan <tanxin.ctf@gmail.com>
Cc: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Cc: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coda/file.c

index ef5ca22bfb3eaa2371ceb3104077217c8e99a94f..52deab7846671e3ba89ec11c020d2ff6e8b316c2 100644 (file)
@@ -238,11 +238,10 @@ int coda_release(struct inode *coda_inode, struct file *coda_file)
        struct coda_file_info *cfi;
        struct coda_inode_info *cii;
        struct inode *host_inode;
-       int err;
 
        cfi = coda_ftoc(coda_file);
 
-       err = venus_close(coda_inode->i_sb, coda_i2f(coda_inode),
+       venus_close(coda_inode->i_sb, coda_i2f(coda_inode),
                          coda_flags, coda_file->f_cred->fsuid);
 
        host_inode = file_inode(cfi->cfi_container);