From 72f78682da2af5fa57f89f39d4c789123288274d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 27 Apr 2017 11:25:25 +1000 Subject: [PATCH] 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 --- drivers/staging/ks7010/ks_hostif.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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, -- 2.20.1