From: Tobin C. Harding Date: Wed, 22 Mar 2017 00:59:55 +0000 (+1100) Subject: staging: ks7010: add braces to multi-line indent X-Git-Tag: v4.12-rc1~84^2~360 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61082bf69662ccd32c2d9de911fc3b9d1d1adeb1;p=karo-tx-linux.git staging: ks7010: add braces to multi-line indent The addition of curly braces around single statements that span multiple lines makes the code more readable in general. Add curly braces to multi-line indented statement. Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 24feee3ffa54..38ea7a27bc08 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -2455,16 +2455,18 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event) hostif_phy_information_request(priv); break; case SME_MIC_FAILURE_REQUEST: - if (priv->wpa.mic_failure.failure == 1) - hostif_mic_failure_request( - priv, priv->wpa.mic_failure.failure - 1, 0); - else if (priv->wpa.mic_failure.failure == 2) - hostif_mic_failure_request( - priv, priv->wpa.mic_failure.failure - 1, - priv->wpa.mic_failure.counter); - else + if (priv->wpa.mic_failure.failure == 1) { + hostif_mic_failure_request(priv, + priv->wpa.mic_failure.failure - 1, + 0); + } else if (priv->wpa.mic_failure.failure == 2) { + hostif_mic_failure_request(priv, + priv->wpa.mic_failure.failure - 1, + priv->wpa.mic_failure.counter); + } else { DPRINTK(4, "SME_MIC_FAILURE_REQUEST: failure count=%u error?\n", priv->wpa.mic_failure.failure); + } break; case SME_MIC_FAILURE_CONFIRM: if (priv->wpa.mic_failure.failure == 2) {