summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/debugfs.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2008-12-09 23:35:41 -0600
committerJohn W. Linville <linville@tuxdriver.com>2008-12-12 14:02:08 -0500
commitd8004cb9267b15cd902eef01a75bb1ffa3995af8 (patch)
tree20d548f9c29aa68d9ff531ac79e6a8d04fcae60e /drivers/net/wireless/b43legacy/debugfs.c
parentc1db52b9d27ee6e15a7136e67e4a21dc916cd07f (diff)
downloadkernel-crypto-d8004cb9267b15cd902eef01a75bb1ffa3995af8.tar.gz
kernel-crypto-d8004cb9267b15cd902eef01a75bb1ffa3995af8.tar.xz
kernel-crypto-d8004cb9267b15cd902eef01a75bb1ffa3995af8.zip
b43legacy: Fix sparse warnings
Sparse yields the following warnings for b43legacy: CHECK drivers/net/wireless/b43legacy/phy.c drivers/net/wireless/b43legacy/phy.c:1304:31: warning: potentially expensive pointer subtraction drivers/net/wireless/b43legacy/phy.c:1304:31: warning: potentially expensive pointer subtraction drivers/net/wireless/b43legacy/phy.c:1304:31: warning: potentially expensive pointer subtraction CHECK drivers/net/wireless/b43legacy/debugfs.c drivers/net/wireless/b43legacy/debugfs.c:243:9: warning: memset with byte count of 131072 Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/debugfs.c')
-rw-r--r--drivers/net/wireless/b43legacy/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c
index 03ce0821a60..1f85ac569fe 100644
--- a/drivers/net/wireless/b43legacy/debugfs.c
+++ b/drivers/net/wireless/b43legacy/debugfs.c
@@ -211,7 +211,7 @@ static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf,
struct b43legacy_dfs_file *dfile;
ssize_t uninitialized_var(ret);
char *buf;
- const size_t bufsize = 1024 * 128;
+ const size_t bufsize = 1024 * 16; /* 16 KiB buffer */
const size_t buforder = get_order(bufsize);
int err = 0;