From: Jeff Mahoney <jeffm@suse.com>
To: Greg KH <gregkh@suse.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [patch 3/5] rtl8192su: fixup size comparison warning
Date: Tue, 04 Aug 2009 10:26:21 -0400 [thread overview]
Message-ID: <20090804142710.150085378@suse.com> (raw)
In-Reply-To: 20090804142618.455591385@suse.com
[-- Attachment #1: patches.rpmify/rtl8192su-size-warning --]
[-- Type: text/plain, Size: 701 bytes --]
sizeof(val) returns type unsigned long. count is already unsigned long, so
just use that. This fixes a compile warning.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
drivers/staging/rtl8192su/ieee80211/ieee80211_module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c
+++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_module.c
@@ -304,7 +304,7 @@ static int store_debug_level(struct file
unsigned long count, void *data)
{
char buf[] = "0x00000000";
- unsigned long len = min(sizeof(buf) - 1, (u32)count);
+ unsigned long len = min(sizeof(buf) - 1, count);
char *p = (char *)buf;
unsigned long val;
next prev parent reply other threads:[~2009-08-04 14:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-04 14:26 [patch 0/5] rtl8192su build fixes and warning cleanups Jeff Mahoney
2009-08-04 14:26 ` [patch 1/5] rtl8192su: compile fixes Jeff Mahoney
2009-08-04 14:26 ` [patch 2/5] rtl8192su: fix up printk warnings Jeff Mahoney
2009-08-04 14:26 ` Jeff Mahoney [this message]
2009-08-04 14:26 ` [patch 4/5] rtl8192su: stop using skb->tail Jeff Mahoney
2009-08-04 14:26 ` [patch 5/5] rtl8192su: add linux/vmalloc.h Jeff Mahoney
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=20090804142710.150085378@suse.com \
--to=jeffm@suse.com \
--cc=gregkh@suse.com \
--cc=linux-kernel@vger.kernel.org \
/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