From: Johannes Berg <johannes@sipsolutions.net>
To: "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>
Cc: linville@tuxdriver.com, lrodriguez@atheros.com,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH 08/10] ath9k: add block braces to match indentation
Date: Thu, 30 Oct 2008 12:45:29 +0100 [thread overview]
Message-ID: <1225367129.3690.40.camel@johannes.berg> (raw)
In-Reply-To: <Pine.LNX.4.64.0810301339550.7072@wrl-59.cs.helsinki.fi> (sfid-20081030_124200_919823_8E5E3369)
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
On Thu, 2008-10-30 at 13:41 +0200, Ilpo Järvinen wrote:
> This isn't a behavior problem as is, and fixing indentation
> inconsistency either way would be fine (reindent or braces).
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
> ---
> drivers/net/wireless/ath9k/main.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
> index f05f584..0f67b1b 100644
> --- a/drivers/net/wireless/ath9k/main.c
> +++ b/drivers/net/wireless/ath9k/main.c
> @@ -467,9 +467,10 @@ void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
> if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK ||
> tx_info->flags & IEEE80211_TX_STAT_TX_FILTERED) {
> /* free driver's private data area of tx_info */
> - if (tx_info->driver_data[0] != NULL)
> + if (tx_info->driver_data[0] != NULL) {
> kfree(tx_info->driver_data[0]);
> tx_info->driver_data[0] = NULL;
> + }
Since kfree(NULL) is fine, how about just removing the if? Also, this
code has been removed in a recent change in the wireless tree, I think
(the rate control revamp)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2008-10-30 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.64.0810301307160.7072@wrl-59.cs.helsinki.fi>
2008-10-30 11:41 ` [PATCH 08/10] ath9k: add block braces to match indentation Ilpo Järvinen
2008-10-30 11:45 ` Johannes Berg [this message]
2008-10-30 12:15 ` Ilpo Järvinen
[not found] ` <18697.50365.638598.302055@localhost.localdomain>
2008-10-30 14:33 ` Johannes Berg
2008-10-30 11:43 ` [PATCH 09/10] b43legacy: reindent misleading statement Ilpo Järvinen
2008-10-30 23:45 ` Larry Finger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1225367129.3690.40.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=ilpo.jarvinen@helsinki.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).