carl9170 firmware: trivial checkpatch fixes
authorChristian Lamparter <chunkeey@googlemail.com>
Tue, 29 Nov 2011 16:13:39 +0000 (17:13 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Tue, 29 Nov 2011 16:21:11 +0000 (17:21 +0100)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/wlan.c
carlfw/src/wol.c
tools/carlu/src/cmd.h
tools/carlu/src/test.c

index eba6222d6281e276853682ffcec36c421070cab2..26a2425f5afdd6e78c72ff484dab6378eb050739 100644 (file)
@@ -469,7 +469,6 @@ static void handle_tx_completion(void)
                        }
                }
 
-
                wlan_tx_ampdu_reset(i);
 
                for_each_desc(desc, &fw.wlan.tx_retry)
index c13e0367316faeaa63918914b2607b9938c3d987..7afb8e524f2b397d6289bac8aaa6de1ddeb4dc2c 100644 (file)
@@ -75,8 +75,8 @@ static bool wlan_rx_wol_magic_packet(const struct ieee80211_hdr *hdr, const unsi
         *
         * "A physical WakeOnLAN (Magic Packet) will look like this:
         * ---------------------------------------------------------------
-        * | Synchronization Stream |  Target MAC |  Password (optional) |
-        * |    6 octets            |   96 octets |   0, 4 or 6          |
+        * | Synchronization Stream | Target MAC |  Password (optional)  |
+        * |    6 octets            | 96 octets  |   0, 4 or 6           |
         * ---------------------------------------------------------------
         *
         * The Synchronization Stream is defined as 6 bytes of FFh.
index 94c098b97d9e2b977e66d4f942539d64726e2d83..ccc9a43f48582298e097997348e79322967ba7a9 100644 (file)
@@ -33,7 +33,7 @@ int carlu_cmd_mem_dump(struct carlu *ar, const uint32_t start,
 int carlu_cmd_write_mem(struct carlu *ar, const uint32_t addr,
                        const uint32_t val);
 int carlu_cmd_mem_watch(struct carlu *ar, const uint32_t mem,
-                        const unsigned int len, void *_buf);
+                       const unsigned int len, void *_buf);
 
 struct carl9170_cmd *carlu_cmd_buf(struct carlu *ar,
        const enum carl9170_cmd_oids cmd, const unsigned int len);
index daf88c61a251380d2aaf8b9ce827297e18854329..bf49559fa057ee44908da1e4746eb05d263382dc 100644 (file)
@@ -197,8 +197,8 @@ int carlu_gpio_test(struct carlu *ar)
 
 #define CHK(cmd)                               \
        do {                                    \
-               int __err;                      \
-               if ((__err = cmd))              \
+               int __err = cmd;                \
+               if ((__err))                    \
                        return __err;           \
        } while (0)