Added space before an open parenthesis wherever needed to resolve errors generated by checkpatch.pl and meet kernel coding standards in sme_userspace.c Signed-off-by: Lisa Nguyen <lisa@xxxxxxxxxxxxxxx> --- drivers/staging/csr/sme_userspace.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/csr/sme_userspace.c b/drivers/staging/csr/sme_userspace.c index c981b19..eeaf2df 100644 --- a/drivers/staging/csr/sme_userspace.c +++ b/drivers/staging/csr/sme_userspace.c @@ -88,7 +88,7 @@ uf_sme_init(unifi_priv_t *priv) interfacePriv->uncontrolled_data_port.overide_action = UF_DATA_PORT_OVERIDE; /* Mark the remainder of the port config table as unallocated */ - for(j = 1; j < UNIFI_MAX_CONNECTIONS; j++) { + for (j = 1; j < UNIFI_MAX_CONNECTIONS; j++) { interfacePriv->controlled_data_port.port_cfg[j].in_use = FALSE; interfacePriv->controlled_data_port.port_cfg[j].port_action = CSR_WIFI_ROUTER_CTRL_PORT_ACTION_8021X_PORT_CLOSED_DISCARD; @@ -101,7 +101,7 @@ uf_sme_init(unifi_priv_t *priv) INIT_LIST_HEAD(&interfacePriv->genericMulticastOrBroadCastMgtFrames); INIT_LIST_HEAD(&interfacePriv->genericMulticastOrBroadCastFrames); - for(j = 0; j < UNIFI_MAX_CONNECTIONS; j++) { + for (j = 0; j < UNIFI_MAX_CONNECTIONS; j++) { interfacePriv->staInfo[j] = NULL; } @@ -138,9 +138,9 @@ uf_sme_deinit(unifi_priv_t *priv) /* Remove all the Peer database, before going down */ for (i = 0; i < CSR_WIFI_NUM_INTERFACES; i++) { down(&priv->ba_mutex); - for(ba_session_idx=0; ba_session_idx < MAX_SUPPORTED_BA_SESSIONS_RX; ba_session_idx++){ + for (ba_session_idx=0; ba_session_idx < MAX_SUPPORTED_BA_SESSIONS_RX; ba_session_idx++){ ba_session_rx = priv->interfacePriv[i]->ba_session_rx[ba_session_idx]; - if(ba_session_rx) { + if (ba_session_rx) { blockack_session_stop(priv, i, CSR_WIFI_ROUTER_CTRL_BLOCK_ACK_RECIPIENT, ba_session_rx->tID, @@ -148,9 +148,9 @@ uf_sme_deinit(unifi_priv_t *priv) } } - for(ba_session_idx=0; ba_session_idx < MAX_SUPPORTED_BA_SESSIONS_TX; ba_session_idx++){ + for (ba_session_idx=0; ba_session_idx < MAX_SUPPORTED_BA_SESSIONS_TX; ba_session_idx++){ ba_session_tx = priv->interfacePriv[i]->ba_session_tx[ba_session_idx]; - if(ba_session_tx) { + if (ba_session_tx) { blockack_session_stop(priv, i, CSR_WIFI_ROUTER_CTRL_BLOCK_ACK_ORIGINATOR, ba_session_tx->tID, @@ -161,8 +161,8 @@ uf_sme_deinit(unifi_priv_t *priv) up(&priv->ba_mutex); interfacePriv = priv->interfacePriv[i]; - if(interfacePriv){ - for(j = 0; j < UNIFI_MAX_CONNECTIONS; j++) { + if (interfacePriv){ + for (j = 0; j < UNIFI_MAX_CONNECTIONS; j++) { if ((staInfo=interfacePriv->staInfo[j]) != NULL) { /* Clear the STA activity parameters before freeing station Record */ unifi_trace(priv, UDBG1, "uf_sme_deinit: Canceling work queue for STA with AID: %d\n", staInfo->aid); -- 1.8.1.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel