staging: ks7010: reformat makro ps_confirm_wait_inc()
authorPhilipp Hoefflin <p.hoefflin@posteo.de>
Mon, 3 Oct 2016 00:57:25 +0000 (02:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:54 +0000 (10:24 +0200)
Reformat the makro ps_confirm_wait_inc() to fix several checkpatch
errors and warnings:
  - ERROR: space required before the open brace '{'
  - ERROR: space required before the open parenthesis '('
  - ERROR: code indent should use tabs where possible
  - ERROR: space required after that close brace '}'
  - ERROR: space required before the open parenthesis '('
  - WARNING: line over 80 characters
  - WARNING: please, no spaces at the start of a line

Signed-off-by: Philipp Hoefflin <p.hoefflin@posteo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c

index 309c7dc..e81e905 100644 (file)
@@ -1294,10 +1294,11 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *packet)
        return result;
 }
 
-#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); \
+               /* atomic_set(&priv->psstatus.status, PS_CONF_WAIT);*/ \
+       } } while (0)
 
 static
 void hostif_mib_get_request(struct ks_wlan_private *priv,