Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a26e01d71622a4cecad06ce85bcab3ed878e7f83
Commit:     a26e01d71622a4cecad06ce85bcab3ed878e7f83
Parent:     ea332912b8a2e0b2f51ac3b6c197b71d3a18cbb7
Author:     Richard Knutsson <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 16 14:10:33 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 16 14:10:33 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Samuel Ortiz <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/irda/parameters.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/irda/parameters.c b/net/irda/parameters.c
index 2627dad..7183e9e 100644
--- a/net/irda/parameters.c
+++ b/net/irda/parameters.c
@@ -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;
@@ -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;
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to