[KJ] [PATCH-RESUBMIT] net/netfilter/x_tables.c unnecessary casts

3 views
Skip to first unread message

Liran Tal

unread,
Sep 19, 2007, 3:32:56 AM9/19/07
to kernel-janitors

The patch removes an unnecessary cast in accordance to the rest of
the code. Kernel version is 2.6.22 with latest patches.

The spaces that appeared before have been replaced with tabs,
hopefully this version of the patch is compliant.

Signed-off-by: Liran Tal <lira...@gmail.com>

--- linux/net/netfilter/x_tables.c.orig 2007-09-11 11:21:44.000000000 +0300
+++ linux/net/netfilter/x_tables.c 2007-09-11 11:22:11.000000000 +0300
@@ -691,7 +691,7 @@ static struct list_head *type2list(u_int

static void *xt_tgt_seq_start(struct seq_file *seq, loff_t *pos)
{
- struct proc_dir_entry *pde = (struct proc_dir_entry *) seq->private;
+ struct proc_dir_entry *pde = seq->private;
u_int16_t af = (unsigned long)pde->data & 0xffff;
u_int16_t type = (unsigned long)pde->data >> 16;
struct list_head *list;

_______________________________________________
REMINDER: this mailing list moved to vger.kernel.org and current one will be discontinued soon.
To resubscribe, send email to majo...@vger.kernel.org with
&quot;subscribe kernel-janitors&quot; in message body and follow instructions.

Kernel-janitors mailing list
Kernel-...@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

Ahmed S. Darwish

unread,
Oct 9, 2007, 3:32:38 PM10/9/07
to Liran Tal, kernel-janitors
On Wed, Sep 19, 2007 at 09:32:56AM +0200, Liran Tal wrote:
>
> The patch removes an unnecessary cast in accordance to the rest of
> the code. Kernel version is 2.6.22 with latest patches.
>
> The spaces that appeared before have been replaced with tabs,
> hopefully this version of the patch is compliant.
>
> Signed-off-by: Liran Tal <lira...@gmail.com>
>
> --- linux/net/netfilter/x_tables.c.orig 2007-09-11 11:21:44.000000000 +0300
> +++ linux/net/netfilter/x_tables.c 2007-09-11 11:22:11.000000000 +0300
> @@ -691,7 +691,7 @@ static struct list_head *type2list(u_int
>
> static void *xt_tgt_seq_start(struct seq_file *seq, loff_t *pos)
> {
> - struct proc_dir_entry *pde = (struct proc_dir_entry *) seq->private;
> + struct proc_dir_entry *pde = seq->private;
> u_int16_t af = (unsigned long)pde->data & 0xffff;
> u_int16_t type = (unsigned long)pde->data >> 16;
> struct list_head *list;
>

Patch was applied with no problems. Just some minor notes:
1- a "---" string below the Signed-off-by line
2- Take care that most of the sentences above the signed-off-by line are
written in the git logs. so don't put unwanted text.
3- you can write any info that's not appropriate for the logs under the
"---" line and before the patch (like the kernel version).

That's all :).

Regards,

--
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com

liran tal

unread,
Oct 9, 2007, 3:43:46 PM10/9/07
to Ahmed S. Darwish, kernel-janitors
Thanks Ahmed, notes taken :-)

Have a good day,
Liran Tal.

Reply all
Reply to author
Forward
0 new messages