Skip to content

Commit a26e01d

Browse files
Richard Knutssondavem330
authored andcommitted
[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: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ea33291 commit a26e01d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎net/irda/parameters.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
463463
int n = 0;
464464

465465
IRDA_ASSERT(buf != NULL, return ret;);
466-
IRDA_ASSERT(info != 0, return ret;);
466+
IRDA_ASSERT(info != NULL, return ret;);
467467

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

519519
IRDA_ASSERT(buf != NULL, return ret;);
520-
IRDA_ASSERT(info != 0, return ret;);
520+
IRDA_ASSERT(info != NULL, return ret;);
521521

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

572572
IRDA_ASSERT(buf != NULL, return ret;);
573-
IRDA_ASSERT(info != 0, return ret;);
573+
IRDA_ASSERT(info != NULL, return ret;);
574574

575575
/*
576576
* Parse all parameters. Each parameter must be at least two bytes

0 commit comments

Comments
 (0)