All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 3/4] ath6kl: cleanup diagnose window read and write	functions
Date: Wed, 31 Aug 2011 14:05:30 +0300	[thread overview]
Message-ID: <4E5E157A.3070704@qca.qualcomm.com> (raw)
In-Reply-To: <20110830150006.GA32378@vasanth-laptop>

On 08/30/2011 06:00 PM, Vasanthakumar Thiagarajan wrote:
> On Tue, Aug 30, 2011 at 04:44:50PM +0300, Kalle Valo wrote:
>
>> +int ath6kl_diag_write(struct ath6kl *ar, u32 address, void *data, u32 length)
>> +{
>> +	u32 count, *buf = data;
>> +	int ret;
>> +
>> +	if (WARN_ON(length % 4))
>> +		return -EINVAL;
>> +
>> +	for (count = 0; count < length / 4; count++, address += 4) {
>> +		ret = ath6kl_diag_write32(ar, address, buf[count]);
>> +		if (ret)
>> +			return ret;
>>  	}
>>  
>> -	return status;
>> +	return ret;
> 
> drivers/net/wireless/ath/ath6kl/main.c: In function ‘ath6kl_diag_write’:
> drivers/net/wireless/ath/ath6kl/main.c:297: warning: ‘ret’ may be
> used uninitialized in this function

Strange, my compiler didn't warn about this. Fixed in v2.

Thanks,
Kalle

  reply	other threads:[~2011-08-31 11:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 13:44 [PATCH 1/4] ath6kl: add firmware log support Kalle Valo
2011-08-30 13:44 ` [PATCH 2/4] ath6kl: implement support to set firmware log parameters Kalle Valo
2011-08-30 13:44 ` [PATCH 3/4] ath6kl: cleanup diagnose window read and write functions Kalle Valo
2011-08-30 15:00   ` Vasanthakumar Thiagarajan
2011-08-31 11:05     ` Kalle Valo [this message]
2011-08-30 13:44 ` [PATCH 4/4] ath6kl: read fwlog from firmware ring buffer Kalle Valo
2011-08-31  6:17   ` Vasanthakumar Thiagarajan

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=4E5E157A.3070704@qca.qualcomm.com \
    --to=kvalo@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=vthiagar@qca.qualcomm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.