Skip to content

Commit

Permalink
gigaset: remove unused structure member rcvbytes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tilman Schmidt authored and David S. Miller committed May 18, 2009
1 parent b88bd95 commit 0a30572
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions drivers/isdn/gigaset/asyncdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ static inline int hdlc_loop(unsigned char c, unsigned char *src, int numbytes,

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;
Expand Down
2 changes: 0 additions & 2 deletions drivers/isdn/gigaset/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/isdn/gigaset/gigaset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a30572

Please sign in to comment.