From b12493d10516555d86ec0be9d0a09973468ec04c Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Tue, 29 Nov 2011 17:13:39 +0100 Subject: [PATCH] carl9170 firmware: trivial checkpatch fixes Signed-off-by: Christian Lamparter --- carlfw/src/wlan.c | 1 - carlfw/src/wol.c | 4 ++-- tools/carlu/src/cmd.h | 2 +- tools/carlu/src/test.c | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) 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) -- 2.31.1