staging: ks7010: fix checkpatch whitespace warnings
Checkpatch emits various warnings/errors pointing to misplaced spaces. - trailing whitespace - please, no spaces at the start of a line - please, no space before tabs - Unnecessary space before function pointer arguments - unnecessary whitespace before a quoted newline - code indent should use tabs where possible Remove all undesirable whitespace. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3ad9004795
commit
c88ff5ae49
|
@ -2616,14 +2616,12 @@ void hostif_sme_enqueue(struct ks_wlan_private *priv, unsigned short event)
|
||||||
if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) {
|
if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) {
|
||||||
priv->sme_i.event_buff[priv->sme_i.qtail] = event;
|
priv->sme_i.event_buff[priv->sme_i.qtail] = event;
|
||||||
inc_smeqtail(priv);
|
inc_smeqtail(priv);
|
||||||
//DPRINTK(3,"inc_smeqtail \n");
|
|
||||||
#ifdef KS_WLAN_DEBUG
|
#ifdef KS_WLAN_DEBUG
|
||||||
if (priv->sme_i.max_event_count < cnt_smeqbody(priv))
|
if (priv->sme_i.max_event_count < cnt_smeqbody(priv))
|
||||||
priv->sme_i.max_event_count = cnt_smeqbody(priv);
|
priv->sme_i.max_event_count = cnt_smeqbody(priv);
|
||||||
#endif /* KS_WLAN_DEBUG */
|
#endif /* KS_WLAN_DEBUG */
|
||||||
} else {
|
} else {
|
||||||
/* in case of buffer overflow */
|
/* in case of buffer overflow */
|
||||||
//DPRINTK(2,"sme queue buffer overflow\n");
|
|
||||||
netdev_err(priv->net_dev, "sme queue buffer overflow\n");
|
netdev_err(priv->net_dev, "sme queue buffer overflow\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -568,7 +568,7 @@ struct hostif_mic_failure_confirm_t {
|
||||||
#define TX_RATE_48M (uint8_t)(480 / 5)
|
#define TX_RATE_48M (uint8_t)(480 / 5)
|
||||||
#define TX_RATE_54M (uint8_t)(540 / 5)
|
#define TX_RATE_54M (uint8_t)(540 / 5)
|
||||||
|
|
||||||
#define IS_11B_RATE(A) (((A & RATE_MASK) == TX_RATE_1M ) || ((A & RATE_MASK) == TX_RATE_2M) || \
|
#define IS_11B_RATE(A) (((A & RATE_MASK) == TX_RATE_1M) || ((A & RATE_MASK) == TX_RATE_2M) || \
|
||||||
((A & RATE_MASK) == TX_RATE_5M) || ((A & RATE_MASK) == TX_RATE_11M))
|
((A & RATE_MASK) == TX_RATE_5M) || ((A & RATE_MASK) == TX_RATE_11M))
|
||||||
|
|
||||||
#define IS_OFDM_RATE(A) (((A & RATE_MASK) == TX_RATE_6M) || ((A & RATE_MASK) == TX_RATE_12M) || \
|
#define IS_OFDM_RATE(A) (((A & RATE_MASK) == TX_RATE_6M) || ((A & RATE_MASK) == TX_RATE_12M) || \
|
||||||
|
@ -612,7 +612,7 @@ enum {
|
||||||
#define IS_HIF_CONF(_EVENT) ((_EVENT & HIF_EVENT_MASK) == 0xE800 && \
|
#define IS_HIF_CONF(_EVENT) ((_EVENT & HIF_EVENT_MASK) == 0xE800 && \
|
||||||
(_EVENT & ~HIF_EVENT_MASK) > 0x0000 && \
|
(_EVENT & ~HIF_EVENT_MASK) > 0x0000 && \
|
||||||
(_EVENT & ~HIF_EVENT_MASK) < 0x0012 && \
|
(_EVENT & ~HIF_EVENT_MASK) < 0x0012 && \
|
||||||
!IS_HIF_IND(_EVENT) )
|
!IS_HIF_IND(_EVENT))
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
|
@ -628,7 +628,7 @@ int hostif_init(struct ks_wlan_private *priv);
|
||||||
void hostif_exit(struct ks_wlan_private *priv);
|
void hostif_exit(struct ks_wlan_private *priv);
|
||||||
int ks_wlan_hw_tx(struct ks_wlan_private *priv, void *p,
|
int ks_wlan_hw_tx(struct ks_wlan_private *priv, void *p,
|
||||||
unsigned long size,
|
unsigned long size,
|
||||||
void (*complete_handler) (void *arg1, void *arg2),
|
void (*complete_handler)(void *arg1, void *arg2),
|
||||||
void *arg1, void *arg2);
|
void *arg1, void *arg2);
|
||||||
void send_packet_complete(void *, void *);
|
void send_packet_complete(void *, void *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue