Skip to contentSkip to conversation

batman-adv: Remove unused variable

PATCH Superseded Emil Goode 3 participants 7 messages Feb 6, 2013

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 batman-adv: Remove unused variable

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

---
 net/batman-adv/originator.c |    1 -
 1 file changed, 1 deletion(-)
net/batman-adv/originator.c +0 -1
index 43d0f89..96fb80b 100644
@@ -408,7 +408,6 @@ int batadv_orig_seq_print_text(struct seq_file *seq, void *offset)
 	struct net_device *net_dev = (struct net_device *)seq->private;
 	struct batadv_priv *bat_priv = netdev_priv(net_dev);
 	struct batadv_hashtable *hash = bat_priv->orig_hash;
-	struct hlist_node *node_tmp;
 	struct hlist_head *head;
 	struct batadv_hard_iface *primary_if;
 	struct batadv_orig_node *orig_node;
Signature · 1 line
1.7.10.4
#1 lore raw

Hi Emil,

Quoted 9 lines · Emil Goode

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

On which tree did you base your patch?
I cannot find the commit you are referring to (ed242d01) and the patch does not apply (neither on net nor net-next).

Other than that the variable is used a couple of lines below (in the code we have)...

Regards,

Signature · 4 lines
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
author
#2 lore raw

Hi Antonio,

The commit ed242d01 is in the linux-next tree and my patch depends on that commit.

Best regards, Emil

Quoted 22 lines · Antonio Quartulli

Hi Emil,

Quoted 9 lines · Emil Goode

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

On which tree did you base your patch?
I cannot find the commit you are referring to (ed242d01) and the patch does not apply (neither on net nor net-next).

Other than that the variable is used a couple of lines below (in the code we have)...

Regards,

#3 lore raw

Hi Emil,

Quoted 5 lines · Emil Goode

Hi Antonio,

The commit ed242d01 is in the linux-next tree and my patch depends on that commit.

Yes, you are right. I was not aware of this commit, because the author did not CC us (neither netdev) even if he changed the code we maintain.

As far as I can see that commit is in linux-next only. Therefore it must be applied there.

However, I'd like you to change the commit message and write the full hash of the commit you are referring to and its subject ("LIKE THIS"). This would make it easier to find it.

Regards,

Quoted 27 lines

Best regards, Emil

Quoted 22 lines · Antonio Quartulli

Hi Emil,

Quoted 9 lines · Emil Goode

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

On which tree did you base your patch?
I cannot find the commit you are referring to (ed242d01) and the patch does not apply (neither on net nor net-next).

Other than that the variable is used a couple of lines below (in the code we have)...

Regards,

Signature · 4 lines
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
author
#4 lore raw

Hi Antonio,

If it is easier I can keep an eye on when the commit lands in the net-next tree and then resend a modified version of the patch. Or do you want me to resend it now?

Best regards, Emil

Quoted 50 lines · Antonio Quartulli

Hi Emil,

Quoted 5 lines · Emil Goode

Hi Antonio,

The commit ed242d01 is in the linux-next tree and my patch depends on that commit.

Yes, you are right. I was not aware of this commit, because the author did not CC us (neither netdev) even if he changed the code we maintain.

As far as I can see that commit is in linux-next only. Therefore it must be applied there.

However, I'd like you to change the commit message and write the full hash of the commit you are referring to and its subject ("LIKE THIS"). This would make it easier to find it.

Regards,

Quoted 27 lines

Best regards, Emil

Quoted 22 lines · Antonio Quartulli

Hi Emil,

Quoted 9 lines · Emil Goode

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

On which tree did you base your patch?
I cannot find the commit you are referring to (ed242d01) and the patch does not apply (neither on net nor net-next).

Other than that the variable is used a couple of lines below (in the code we have)...

Regards,

#5 lore raw

Hi Emil,

Quoted 6 lines · Emil Goode

Hi Antonio,

If it is easier I can keep an eye on when the commit lands in the net-next tree and then resend a modified version of the patch. Or do you want me to resend it now?

Well, that commit should be merged in net-next after the next merge window.

You can resend it now, but be sure to CC Stephen Rothwell <[email protected]> (the linux-next maintainer) and to clearly state that the patch is for linux-next.

Thanks.
Cheers,

p.s. try to do not top-post please :-)

Quoted 55 lines

Best regards, Emil

Quoted 50 lines · Antonio Quartulli

Hi Emil,

Quoted 5 lines · Emil Goode

Hi Antonio,

The commit ed242d01 is in the linux-next tree and my patch depends on that commit.

Yes, you are right. I was not aware of this commit, because the author did not CC us (neither netdev) even if he changed the code we maintain.

As far as I can see that commit is in linux-next only. Therefore it must be applied there.

However, I'd like you to change the commit message and write the full hash of the commit you are referring to and its subject ("LIKE THIS"). This would make it easier to find it.

Regards,

Quoted 27 lines

Best regards, Emil

Quoted 22 lines · Antonio Quartulli

Hi Emil,

Quoted 9 lines · Emil Goode

The commit ed242d01 removed a node parameter from iterators. This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
unused variable ‘node_tmp’ [-Wunused-variable]

On which tree did you base your patch?
I cannot find the commit you are referring to (ed242d01) and the patch does not apply (neither on net nor net-next).

Other than that the variable is used a couple of lines below (in the code we have)...

Regards,

Signature · 4 lines
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
#6 lore raw
Quoted 10 lines · Antonio Quartulli

Hi Emil,

Quoted 6 lines · Emil Goode

Hi Antonio,

If it is easier I can keep an eye on when the commit lands in the net-next tree and then resend a modified version of the patch. Or do you want me to resend it now?

Quoted 6 lines

Well, that commit should be merged in net-next after the next merge window.

You can resend it now, but be sure to CC Stephen Rothwell <[email protected]> (the linux-next maintainer) and to clearly state that the patch is for linux-next.

It doesn't go through Stephen Rothwell. It goes through Andrew Morton and it should be CC'd to Sasha Levin.

regards,
dan carpenter