diff mbox

[net-next] net: caif: Remove unused stats member from struct chnl_net

Message ID 20170119150425.12559-1-tklauser@distanz.ch
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Tobias Klauser Jan. 19, 2017, 3:04 p.m. UTC
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(-)

Comments

David Miller Jan. 19, 2017, 4:51 p.m. UTC | #1
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.
diff mbox

Patch

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;