]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
cifs: remove redundant return in cifs_creation_time_get
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Jun 2017 23:33:45 +0000 (00:33 +0100)
committerSteve French <smfrench@gmail.com>
Wed, 21 Jun 2017 00:14:40 +0000 (19:14 -0500)
There is a redundant return in function cifs_creation_time_get
that appears to be old vestigial code than can be removed. So
remove it.

Detected by CoverityScan, CID#1361924 ("Structurally dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/xattr.c

index 3cb5c9e2d4e78f641549818fbbad7681b193854d..de50e749ff058d79c67f7462962614c8c835ecdb 100644 (file)
@@ -188,8 +188,6 @@ static int cifs_creation_time_get(struct dentry *dentry, struct inode *inode,
        pcreatetime = (__u64 *)value;
        *pcreatetime = CIFS_I(inode)->createtime;
        return sizeof(__u64);
-
-       return rc;
 }