2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00

[wireless ipw2100] kill unused-var warnings for debug-disabled code

This commit is contained in:
Jeff Garzik 2005-11-09 00:49:38 -05:00
parent eedb9f09e9
commit c2a8fad433

View File

@ -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);