From: Christian Lamparter Date: Tue, 29 Nov 2011 16:13:39 +0000 (+0100) Subject: carl9170 firmware: trivial checkpatch fixes X-Git-Tag: 1.9.5~13 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=b12493d10516555d86ec0be9d0a09973468ec04c;hp=8d6c5e6578b05a9309ff4323a84cb8d924d63623 carl9170 firmware: trivial checkpatch fixes Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/wlan.c b/carlfw/src/wlan.c index eba6222..26a2425 100644 --- a/carlfw/src/wlan.c +++ b/carlfw/src/wlan.c @@ -469,7 +469,6 @@ static void handle_tx_completion(void) } } - wlan_tx_ampdu_reset(i); for_each_desc(desc, &fw.wlan.tx_retry) diff --git a/carlfw/src/wol.c b/carlfw/src/wol.c index c13e036..7afb8e5 100644 --- a/carlfw/src/wol.c +++ b/carlfw/src/wol.c @@ -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. diff --git a/tools/carlu/src/cmd.h b/tools/carlu/src/cmd.h index 94c098b..ccc9a43 100644 --- a/tools/carlu/src/cmd.h +++ b/tools/carlu/src/cmd.h @@ -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); diff --git a/tools/carlu/src/test.c b/tools/carlu/src/test.c index daf88c6..bf49559 100644 --- a/tools/carlu/src/test.c +++ b/tools/carlu/src/test.c @@ -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)