xt_mp2t: remove redundant casts

This commit is contained in:
Jan Engelhardt
2010-11-04 00:20:42 +01:00
parent 9a40807d00
commit 304bbf0846

View File

@@ -1213,7 +1213,7 @@ static void *mp2t_seq_next(struct seq_file *s, void *v, loff_t *pos)
{
struct proc_dir_entry *pde = s->private;
struct xt_rule_mp2t_conn_htable *htable = pde->data;
unsigned int *bucket = (unsigned int *)v;
unsigned int *bucket = v;
if (v == SEQ_START_TOKEN) {
bucket = kmalloc(sizeof(unsigned int), GFP_ATOMIC);
@@ -1235,7 +1235,7 @@ static void *mp2t_seq_next(struct seq_file *s, void *v, loff_t *pos)
static void mp2t_seq_stop(struct seq_file *s, void *v)
{
unsigned int *bucket = (unsigned int *)v;
unsigned int *bucket = v;
kfree(bucket);
}
@@ -1270,7 +1270,7 @@ static int mp2t_seq_show(struct seq_file *s, void *v)
{
struct proc_dir_entry *pde = s->private;
struct xt_rule_mp2t_conn_htable *htable = pde->data;
unsigned int *bucket = (unsigned int *)v;
unsigned int *bucket = v;
struct mp2t_stream *stream;
struct hlist_node *pos;
struct timespec delta;