gigaset: remove unused structure member rcvbytes
authorTilman Schmidt <tilman@imap.cc>
Wed, 13 May 2009 12:44:18 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 03:51:28 +0000 (20:51 -0700)
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>
drivers/isdn/gigaset/asyncdata.c
drivers/isdn/gigaset/common.c
drivers/isdn/gigaset/gigaset.h

index 2a4ce96f04bd7ecfea5ce9111b231e076bc80a28..234cc5d53312ab90b339edd1c96a005fd10a7942 100644 (file)
@@ -174,9 +174,8 @@ byte_stuff:
 
                                if (unlikely(fcs != PPP_GOODFCS)) {
                                        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;
                                        gigaset_rcv_error(compskb, cs, bcs);
                                        error = 1;
index 79c9b0f40f4b09d79c3fad4c966b5ecc9d48bcce..e4141bf8b2f3a705436115491bab35a18e198062 100644 (file)
@@ -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);
        gigaset_at_init(&bcs->at_state, bcs, cs, -1);
 
-       bcs->rcvbytes = 0;
-
 #ifdef CONFIG_GIGASET_DEBUG
        bcs->emptycount = 0;
 #endif
index d5f0110a8dfa70d29ab7d150d087f0f7f1b0c842..a2f6125739eb23f4ad14478391ed987a5f5136d8 100644 (file)
@@ -384,7 +384,6 @@ struct bc_state {
        int trans_up;                   /* Counter of packages (upstream) */
 
        struct at_state_t at_state;
-       unsigned long rcvbytes;
 
        __u16 fcs;
        struct sk_buff *skb;