瀏覽代碼

gigaset: remove unused structure member rcvbytes

The B channel data structure member rcvbytes was never set to
anything else but zero, so drop it.

Impact: cleanup
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tilman Schmidt 16 年之前
父節點
當前提交
0a305720ee
共有 3 個文件被更改,包括 2 次插入6 次删除
  1. 2 3
      drivers/isdn/gigaset/asyncdata.c
  2. 0 2
      drivers/isdn/gigaset/common.c
  3. 0 1
      drivers/isdn/gigaset/gigaset.h

+ 2 - 3
drivers/isdn/gigaset/asyncdata.c

@@ -174,9 +174,8 @@ byte_stuff:
 
 
 				if (unlikely(fcs != PPP_GOODFCS)) {
 				if (unlikely(fcs != PPP_GOODFCS)) {
 					dev_err(cs->dev,
 					dev_err(cs->dev,
-					    "Packet checksum at %lu failed, "
-					    "packet is corrupted (%u bytes)!\n",
-					    bcs->rcvbytes, skb->len);
+				"Checksum failed, %u bytes corrupted!\n",
+						skb->len);
 					compskb = NULL;
 					compskb = NULL;
 					gigaset_rcv_error(compskb, cs, bcs);
 					gigaset_rcv_error(compskb, cs, bcs);
 					error = 1;
 					error = 1;

+ 0 - 2
drivers/isdn/gigaset/common.c

@@ -565,8 +565,6 @@ static struct bc_state *gigaset_initbcs(struct bc_state *bcs,
 	gig_dbg(DEBUG_INIT, "setting up bcs[%d]->at_state", channel);
 	gig_dbg(DEBUG_INIT, "setting up bcs[%d]->at_state", channel);
 	gigaset_at_init(&bcs->at_state, bcs, cs, -1);
 	gigaset_at_init(&bcs->at_state, bcs, cs, -1);
 
 
-	bcs->rcvbytes = 0;
-
 #ifdef CONFIG_GIGASET_DEBUG
 #ifdef CONFIG_GIGASET_DEBUG
 	bcs->emptycount = 0;
 	bcs->emptycount = 0;
 #endif
 #endif

+ 0 - 1
drivers/isdn/gigaset/gigaset.h

@@ -384,7 +384,6 @@ struct bc_state {
 	int trans_up;			/* Counter of packages (upstream) */
 	int trans_up;			/* Counter of packages (upstream) */
 
 
 	struct at_state_t at_state;
 	struct at_state_t at_state;
-	unsigned long rcvbytes;
 
 
 	__u16 fcs;
 	__u16 fcs;
 	struct sk_buff *skb;
 	struct sk_buff *skb;