netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: caif: Remove unused stats member from struct chnl_net
@ 2017-01-19 15:04 Tobias Klauser
  2017-01-19 16:51 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2017-01-19 15:04 UTC (permalink / raw)
  To: Dmitry Tarnyagin, David S. Miller; +Cc: netdev

The stats member of struct chnl_net is used nowhere in the code, so it
might as well be removed.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 net/caif/chnl_net.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c
index 3408ed51b611..1816fc9f1ee7 100644
--- a/net/caif/chnl_net.c
+++ b/net/caif/chnl_net.c
@@ -44,7 +44,6 @@ enum caif_states {
 
 struct chnl_net {
 	struct cflayer chnl;
-	struct net_device_stats stats;
 	struct caif_connect_request conn_req;
 	struct list_head list_field;
 	struct net_device *netdev;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: caif: Remove unused stats member from struct chnl_net
  2017-01-19 15:04 [PATCH net-next] net: caif: Remove unused stats member from struct chnl_net Tobias Klauser
@ 2017-01-19 16:51 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-19 16:51 UTC (permalink / raw)
  To: tklauser; +Cc: dmitry.tarnyagin, netdev

From: Tobias Klauser <tklauser@distanz.ch>
Date: Thu, 19 Jan 2017 16:04:25 +0100

> The stats member of struct chnl_net is used nowhere in the code, so it
> might as well be removed.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-19 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 15:04 [PATCH net-next] net: caif: Remove unused stats member from struct chnl_net Tobias Klauser
2017-01-19 16:51 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).