[PATCH] ipw2100: Fix a gcc compile warning
drivers/net/wireless/ipw2100.c:2236: warning: `ipw2100_match_buf' defined but not used Cc: Yi Zhu <yi.zhu@intel.com> Cc: James Ketrenos <jketreno@linux.intel.com> Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4a99ac3a9e
commit
3c5eca542d
1 changed files with 12 additions and 10 deletions
|
@ -2201,6 +2201,17 @@ static int ipw2100_alloc_skb(struct ipw2100_priv *priv,
|
||||||
#define SEARCH_SNAPSHOT 1
|
#define SEARCH_SNAPSHOT 1
|
||||||
|
|
||||||
#define SNAPSHOT_ADDR(ofs) (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff))
|
#define SNAPSHOT_ADDR(ofs) (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff))
|
||||||
|
static void ipw2100_snapshot_free(struct ipw2100_priv *priv)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
if (!priv->snapshot[0])
|
||||||
|
return;
|
||||||
|
for (i = 0; i < 0x30; i++)
|
||||||
|
kfree(priv->snapshot[i]);
|
||||||
|
priv->snapshot[0] = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_IPW2100_DEBUG_C3
|
||||||
static int ipw2100_snapshot_alloc(struct ipw2100_priv *priv)
|
static int ipw2100_snapshot_alloc(struct ipw2100_priv *priv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -2221,16 +2232,6 @@ static int ipw2100_snapshot_alloc(struct ipw2100_priv *priv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ipw2100_snapshot_free(struct ipw2100_priv *priv)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
if (!priv->snapshot[0])
|
|
||||||
return;
|
|
||||||
for (i = 0; i < 0x30; i++)
|
|
||||||
kfree(priv->snapshot[i]);
|
|
||||||
priv->snapshot[0] = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf,
|
static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf,
|
||||||
size_t len, int mode)
|
size_t len, int mode)
|
||||||
{
|
{
|
||||||
|
@ -2269,6 +2270,7 @@ static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf,
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue