From: Tobin C. Harding Date: Thu, 27 Apr 2017 01:25:25 +0000 (+1000) Subject: staging: ks7010: clean up macro ps_confirm_wait_inc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72f78682da2af5fa57f89f39d4c789123288274d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: ks7010: clean up macro ps_confirm_wait_inc Macro includes commented out code. Removing dead code line enables braces to be removed. Macro is easier to read if the code is clean. Clean up macro ps_confirm_wait_inc. 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 b19583cd5d77..a8d334a8e52c 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -1283,11 +1283,11 @@ err_kfree_skb: return ret; } -#define ps_confirm_wait_inc(priv) do { \ - if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET) { \ - atomic_inc(&priv->psstatus.confirm_wait); \ - /* atomic_set(&priv->psstatus.status, PS_CONF_WAIT);*/ \ - } } while (0) +#define ps_confirm_wait_inc(priv) \ + do { \ + if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET) \ + atomic_inc(&priv->psstatus.confirm_wait); \ + } while (0) static void hostif_mib_get_request(struct ks_wlan_private *priv,