projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eedb9f0
)
[wireless ipw2100] kill unused-var warnings for debug-disabled code
author
Jeff Garzik
<jgarzik@pobox.com>
Wed, 9 Nov 2005 05:49:38 +0000
(
00:49
-0500)
committer
Jeff Garzik
<jgarzik@pobox.com>
Wed, 9 Nov 2005 05:49:38 +0000
(
00:49
-0500)
drivers/net/wireless/ipw2100.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ipw2100.c
b/drivers/net/wireless/ipw2100.c
index 877ac514aa07f8c643bf53b6ab03fe27e3b49e81..a2e6214169e914ba6e79b4d8bfe631a730449633 100644
(file)
--- a/
drivers/net/wireless/ipw2100.c
+++ b/
drivers/net/wireless/ipw2100.c
@@
-3748,6
+3748,8
@@
static ssize_t store_memory(struct device *d, struct device_attribute *attr,
struct net_device *dev = priv->net_dev;
const char *p = buf;
+ (void) dev; /* kill unused-var warning for debug-only code */
+
if (count < 1)
return count;
@@
-4066,6
+4068,8
@@
static ssize_t store_scan_age(struct device *d, struct device_attribute *attr,
unsigned long val;
char *p = buffer;
+ (void) dev; /* kill unused-var warning for debug-only code */
+
IPW_DEBUG_INFO("enter\n");
strncpy(buffer, buf, len);