Commit a26e01d7 authored by Richard Knutsson's avatar Richard Knutsson Committed by David S. Miller

[IRDA]: irda parameters warning fixes.

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: default avatarRichard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: default avatarSamuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea332912
...@@ -463,7 +463,7 @@ int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len, ...@@ -463,7 +463,7 @@ int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
int n = 0; int n = 0;
IRDA_ASSERT(buf != NULL, return ret;); 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_minor = pi & info->pi_mask;
pi_major = pi >> info->pi_major_offset; pi_major = pi >> info->pi_major_offset;
...@@ -517,7 +517,7 @@ static int irda_param_extract(void *self, __u8 *buf, int len, ...@@ -517,7 +517,7 @@ static int irda_param_extract(void *self, __u8 *buf, int len,
int n = 0; int n = 0;
IRDA_ASSERT(buf != NULL, return ret;); 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_minor = buf[n] & info->pi_mask;
pi_major = buf[n] >> info->pi_major_offset; pi_major = buf[n] >> info->pi_major_offset;
...@@ -570,7 +570,7 @@ int irda_param_extract_all(void *self, __u8 *buf, int len, ...@@ -570,7 +570,7 @@ int irda_param_extract_all(void *self, __u8 *buf, int len,
int n = 0; int n = 0;
IRDA_ASSERT(buf != NULL, return ret;); 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 * Parse all parameters. Each parameter must be at least two bytes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment