remove unnecessary void* type castings. Signed-off-by: Yu Zhe <yuzhe@xxxxxxxxxxxx> --- fs/9p/fid.c | 2 +- fs/9p/v9fs.c | 2 +- fs/9p/vfs_inode.c | 4 ++-- fs/9p/vfs_inode_dotl.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/9p/fid.c b/fs/9p/fid.c index 79df61fe0e59..c2b8d7fc9e53 100644 --- a/fs/9p/fid.c +++ b/fs/9p/fid.c @@ -53,7 +53,7 @@ static struct p9_fid *v9fs_fid_find_inode(struct inode *inode, kuid_t uid) p9_debug(P9_DEBUG_VFS, " inode: %p\n", inode); spin_lock(&inode->i_lock); - h = (struct hlist_head *)&inode->i_private; + h = &inode->i_private; hlist_for_each_entry(fid, h, ilist) { if (uid_eq(fid->uid, uid)) { refcount_inc(&fid->count); diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index e28ddf763b3b..51ddc58a7029 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -622,7 +622,7 @@ static void v9fs_sysfs_cleanup(void) static void v9fs_inode_init_once(void *foo) { - struct v9fs_inode *v9inode = (struct v9fs_inode *)foo; + struct v9fs_inode *v9inode = foo; memset(&v9inode->qid, 0, sizeof(v9inode->qid)); inode_init_once(&v9inode->vfs_inode); diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 55367ecb9442..f415fd7a1eaf 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -409,7 +409,7 @@ static int v9fs_test_inode(struct inode *inode, void *data) int umode; dev_t rdev; struct v9fs_inode *v9inode = V9FS_I(inode); - struct p9_wstat *st = (struct p9_wstat *)data; + struct p9_wstat *st = data; struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode); umode = p9mode2unixmode(v9ses, st, &rdev); @@ -438,7 +438,7 @@ static int v9fs_test_new_inode(struct inode *inode, void *data) static int v9fs_set_inode(struct inode *inode, void *data) { struct v9fs_inode *v9inode = V9FS_I(inode); - struct p9_wstat *st = (struct p9_wstat *)data; + struct p9_wstat *st = data; memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); return 0; diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index d17502a738a9..b910fee62e25 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c @@ -57,7 +57,7 @@ static kgid_t v9fs_get_fsgid_for_create(struct inode *dir_inode) static int v9fs_test_inode_dotl(struct inode *inode, void *data) { struct v9fs_inode *v9inode = V9FS_I(inode); - struct p9_stat_dotl *st = (struct p9_stat_dotl *)data; + struct p9_stat_dotl *st = data; /* don't match inode of different type */ if (inode_wrong_type(inode, st->st_mode)) @@ -88,7 +88,7 @@ static int v9fs_test_new_inode_dotl(struct inode *inode, void *data) static int v9fs_set_inode_dotl(struct inode *inode, void *data) { struct v9fs_inode *v9inode = V9FS_I(inode); - struct p9_stat_dotl *st = (struct p9_stat_dotl *)data; + struct p9_stat_dotl *st = data; memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); inode->i_generation = st->st_gen; -- 2.25.1