Skip to content

Commit

Permalink
[wireless ipw2100] kill unused-var warnings for debug-disabled code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Nov 9, 2005
1 parent eedb9f0 commit c2a8fad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c2a8fad

Please sign in to comment.