diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-09 00:49:38 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-09 00:49:38 -0500 |
commit | c2a8fad43376b2567087358a9cc46844f742342e (patch) | |
tree | 1e00e52b1cb7cf63856a3d865381a03369a263a0 | |
parent | eedb9f09e92598c165de37a8c210434d270ca3a6 (diff) |
[wireless ipw2100] kill unused-var warnings for debug-disabled code
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 877ac514aa07..a2e6214169e9 100644 --- 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, | |||
3748 | struct net_device *dev = priv->net_dev; | 3748 | struct net_device *dev = priv->net_dev; |
3749 | const char *p = buf; | 3749 | const char *p = buf; |
3750 | 3750 | ||
3751 | (void) dev; /* kill unused-var warning for debug-only code */ | ||
3752 | |||
3751 | if (count < 1) | 3753 | if (count < 1) |
3752 | return count; | 3754 | return count; |
3753 | 3755 | ||
@@ -4066,6 +4068,8 @@ static ssize_t store_scan_age(struct device *d, struct device_attribute *attr, | |||
4066 | unsigned long val; | 4068 | unsigned long val; |
4067 | char *p = buffer; | 4069 | char *p = buffer; |
4068 | 4070 | ||
4071 | (void) dev; /* kill unused-var warning for debug-only code */ | ||
4072 | |||
4069 | IPW_DEBUG_INFO("enter\n"); | 4073 | IPW_DEBUG_INFO("enter\n"); |
4070 | 4074 | ||
4071 | strncpy(buffer, buf, len); | 4075 | strncpy(buffer, buf, len); |