Skip to content

Commit 7ad2c39

Browse files
yuzhenfschinajgross1
authored andcommitted
xen: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent 934ef33 commit 7ad2c39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/xen/xenfs/xensyms.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static int xensyms_next_sym(struct xensyms *xs)
6464

6565
static void *xensyms_start(struct seq_file *m, loff_t *pos)
6666
{
67-
struct xensyms *xs = (struct xensyms *)m->private;
67+
struct xensyms *xs = m->private;
6868

6969
xs->op.u.symdata.symnum = *pos;
7070

@@ -76,7 +76,7 @@ static void *xensyms_start(struct seq_file *m, loff_t *pos)
7676

7777
static void *xensyms_next(struct seq_file *m, void *p, loff_t *pos)
7878
{
79-
struct xensyms *xs = (struct xensyms *)m->private;
79+
struct xensyms *xs = m->private;
8080

8181
xs->op.u.symdata.symnum = ++(*pos);
8282

@@ -88,7 +88,7 @@ static void *xensyms_next(struct seq_file *m, void *p, loff_t *pos)
8888

8989
static int xensyms_show(struct seq_file *m, void *p)
9090
{
91-
struct xensyms *xs = (struct xensyms *)m->private;
91+
struct xensyms *xs = m->private;
9292
struct xenpf_symdata *symdata = &xs->op.u.symdata;
9393

9494
seq_printf(m, "%016llx %c %s\n", symdata->address,
@@ -120,7 +120,7 @@ static int xensyms_open(struct inode *inode, struct file *file)
120120
return ret;
121121

122122
m = file->private_data;
123-
xs = (struct xensyms *)m->private;
123+
xs = m->private;
124124

125125
xs->namelen = XEN_KSYM_NAME_LEN + 1;
126126
xs->name = kzalloc(xs->namelen, GFP_KERNEL);
@@ -138,7 +138,7 @@ static int xensyms_open(struct inode *inode, struct file *file)
138138
static int xensyms_release(struct inode *inode, struct file *file)
139139
{
140140
struct seq_file *m = file->private_data;
141-
struct xensyms *xs = (struct xensyms *)m->private;
141+
struct xensyms *xs = m->private;
142142

143143
kfree(xs->name);
144144
return seq_release_private(inode, file);

0 commit comments

Comments
 (0)