Skip to content

Commit

Permalink
staging: ks7010: remove max_event_count field which is only being use…
Browse files Browse the repository at this point in the history
…d in debug

This patch removes max_event_count field of sme_info structure which is a
write only variable just being used for debug purposes.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sergio Paracuellos authored and Greg Kroah-Hartman committed Mar 22, 2018
1 parent 31ce0d8 commit a00c38a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions drivers/staging/ks7010/ks_hostif.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,10 +2409,6 @@ void hostif_sme_enqueue(struct ks_wlan_private *priv, unsigned short event)
if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) {
priv->sme_i.event_buff[priv->sme_i.qtail] = event;
inc_smeqtail(priv);
#ifdef DEBUG
if (priv->sme_i.max_event_count < cnt_smeqbody(priv))
priv->sme_i.max_event_count = cnt_smeqbody(priv);
#endif
} else {
/* in case of buffer overflow */
netdev_err(priv->net_dev, "sme queue buffer overflow\n");
Expand Down Expand Up @@ -2461,9 +2457,6 @@ int hostif_init(struct ks_wlan_private *priv)
priv->sme_i.sme_status = SME_IDLE;
priv->sme_i.qhead = 0;
priv->sme_i.qtail = 0;
#ifdef DEBUG
priv->sme_i.max_event_count = 0;
#endif
spin_lock_init(&priv->sme_i.sme_spin);
priv->sme_i.sme_flag = 0;

Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/ks7010/ks_wlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ struct sme_info {
int event_buff[SME_EVENT_BUFF_SIZE];
unsigned int qhead;
unsigned int qtail;
#ifdef DEBUG
/* for debug */
unsigned int max_event_count;
#endif
spinlock_t sme_spin;
unsigned long sme_flag;
};
Expand Down

0 comments on commit a00c38a

Please sign in to comment.