lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220614090524.794770-1-yuzhe@nfschina.com>
Date:   Tue, 14 Jun 2022 02:05:24 -0700
From:   Yu Zhe <yuzhe@...china.com>
To:     jaharkes@...cmu.edu
Cc:     coda@...cmu.edu, codalist@...a.cs.cmu.edu,
        linux-kernel@...r.kernel.org, liqiong@...china.com,
        Yu Zhe <yuzhe@...china.com>
Subject: [PATCH] coda: remove unnecessary type castings

remove unnecessary void* type castings.

Signed-off-by: Yu Zhe <yuzhe@...china.com>
---
 fs/coda/cnode.c | 4 ++--
 fs/coda/inode.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c
index 62a3d2565c26..4d789180e867 100644
--- a/fs/coda/cnode.c
+++ b/fs/coda/cnode.c
@@ -44,14 +44,14 @@ static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr)
 
 static int coda_test_inode(struct inode *inode, void *data)
 {
-	struct CodaFid *fid = (struct CodaFid *)data;
+	struct CodaFid *fid = data;
 	struct coda_inode_info *cii = ITOC(inode);
 	return coda_fideq(&cii->c_fid, fid);
 }
 
 static int coda_set_inode(struct inode *inode, void *data)
 {
-	struct CodaFid *fid = (struct CodaFid *)data;
+	struct CodaFid *fid = data;
 	struct coda_inode_info *cii = ITOC(inode);
 	cii->c_fid = *fid;
 	return 0;
diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index 2185328b65c7..59ef5c5afc59 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -61,7 +61,7 @@ static void coda_free_inode(struct inode *inode)
 
 static void init_once(void *foo)
 {
-	struct coda_inode_info *ei = (struct coda_inode_info *) foo;
+	struct coda_inode_info *ei = foo;
 
 	inode_init_once(&ei->vfs_inode);
 }
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ