Skip to content

Commit

Permalink
[IRDA]: irda parameters warning fixes.
Browse files Browse the repository at this point in the history
This patch fixes:
  CHECK   /home/kernel/src/net/irda/parameters.c
/home/kernel/src/net/irda/parameters.c:466:2: warning: Using plain integer as NULL pointer
/home/kernel/src/net/irda/parameters.c:520:2: warning: Using plain integer as NULL pointer
/home/kernel/src/net/irda/parameters.c:573:2: warning: Using plain integer as NULL pointer

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Knutsson authored and David S. Miller committed Dec 16, 2007
1 parent ea33291 commit a26e01d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/irda/parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
int n = 0;

IRDA_ASSERT(buf != NULL, return ret;);
IRDA_ASSERT(info != 0, return ret;);
IRDA_ASSERT(info != NULL, return ret;);

pi_minor = pi & info->pi_mask;
pi_major = pi >> info->pi_major_offset;
Expand Down Expand Up @@ -517,7 +517,7 @@ static int irda_param_extract(void *self, __u8 *buf, int len,
int n = 0;

IRDA_ASSERT(buf != NULL, return ret;);
IRDA_ASSERT(info != 0, return ret;);
IRDA_ASSERT(info != NULL, return ret;);

pi_minor = buf[n] & info->pi_mask;
pi_major = buf[n] >> info->pi_major_offset;
Expand Down Expand Up @@ -570,7 +570,7 @@ int irda_param_extract_all(void *self, __u8 *buf, int len,
int n = 0;

IRDA_ASSERT(buf != NULL, return ret;);
IRDA_ASSERT(info != 0, return ret;);
IRDA_ASSERT(info != NULL, return ret;);

/*
* Parse all parameters. Each parameter must be at least two bytes
Expand Down

0 comments on commit a26e01d

Please sign in to comment.