Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging/csr: fix coding style problems in handle_bh_error

the following fixes:

* fix line over 80
* fix no space at start of line
* use tabs instead of spaces
* no need of opening & closing braces for single statement if block

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Devendra Naga and committed by
Greg Kroah-Hartman
a6c42258 be21a084

+23 -21
+23 -21
drivers/staging/csr/bh.c
··· 160 160 * None. 161 161 * --------------------------------------------------------------------------- 162 162 */ 163 - static void 163 + static void 164 164 handle_bh_error(unifi_priv_t *priv) 165 165 { 166 - u8 conf_param = CONFIG_IND_ERROR; 167 - u8 interfaceTag; 166 + netInterface_priv_t *interfacePriv; 167 + u8 conf_param = CONFIG_IND_ERROR; 168 + u8 interfaceTag; 168 169 169 170 170 - /* Block unifi_run_bh() until the error has been handled. */ 171 - priv->bh_thread.block_thread = 1; 171 + /* Block unifi_run_bh() until the error has been handled. */ 172 + priv->bh_thread.block_thread = 1; 172 173 173 - /* Consider UniFi to be uninitialised */ 174 - priv->init_progress = UNIFI_INIT_NONE; 174 + /* Consider UniFi to be uninitialised */ 175 + priv->init_progress = UNIFI_INIT_NONE; 175 176 176 - /* Stop the network traffic */ 177 - for( interfaceTag =0; interfaceTag <CSR_WIFI_NUM_INTERFACES;interfaceTag ++) { 178 - netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag]; 179 - if (interfacePriv->netdev_registered == 1) { 180 - netif_carrier_off(priv->netdev[interfaceTag]); 181 - } 182 - } 177 + /* Stop the network traffic */ 178 + for (interfaceTag = 0; 179 + interfaceTag < CSR_WIFI_NUM_INTERFACES; interfaceTag++) { 180 + interfacePriv = priv->interfacePriv[interfaceTag]; 181 + if (interfacePriv->netdev_registered) 182 + netif_carrier_off(priv->netdev[interfaceTag]); 183 + } 183 184 184 185 #ifdef CSR_NATIVE_LINUX 185 - /* Force any client waiting on an mlme_wait_for_reply() to abort. */ 186 - uf_abort_mlme(priv); 186 + /* Force any client waiting on an mlme_wait_for_reply() to abort. */ 187 + uf_abort_mlme(priv); 187 188 188 - /* Cancel any pending workqueue tasks */ 189 - flush_workqueue(priv->unifi_workqueue); 189 + /* Cancel any pending workqueue tasks */ 190 + flush_workqueue(priv->unifi_workqueue); 190 191 191 192 #endif /* CSR_NATIVE_LINUX */ 192 193 193 - unifi_error(priv, "handle_bh_error: fatal error is reported to the SME.\n"); 194 - /* Notify the clients (SME or unifi_manager) for the error. */ 195 - ul_log_config_ind(priv, &conf_param, sizeof(u8)); 194 + unifi_error(priv, 195 + "handle_bh_error: fatal error is reported to the SME.\n"); 196 + /* Notify the clients (SME or unifi_manager) for the error. */ 197 + ul_log_config_ind(priv, &conf_param, sizeof(u8)); 196 198 197 199 } /* handle_bh_error() */ 198 200