diff options
Diffstat (limited to 'drivers/isdn/capi/kcapi.c')
-rw-r--r-- | drivers/isdn/capi/kcapi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index f55531869313..ef6de217b9fc 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c | |||
@@ -826,7 +826,7 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data) | |||
826 | card = capi_ctr_get(card); | 826 | card = capi_ctr_get(card); |
827 | if (!card) | 827 | if (!card) |
828 | return -ESRCH; | 828 | return -ESRCH; |
829 | if (card->load_firmware == 0) { | 829 | if (card->load_firmware == NULL) { |
830 | printk(KERN_DEBUG "kcapi: load: no load function\n"); | 830 | printk(KERN_DEBUG "kcapi: load: no load function\n"); |
831 | return -ESRCH; | 831 | return -ESRCH; |
832 | } | 832 | } |
@@ -835,7 +835,7 @@ static int old_capi_manufacturer(unsigned int cmd, void __user *data) | |||
835 | printk(KERN_DEBUG "kcapi: load: invalid parameter: length of t4file is %d ?\n", ldef.t4file.len); | 835 | printk(KERN_DEBUG "kcapi: load: invalid parameter: length of t4file is %d ?\n", ldef.t4file.len); |
836 | return -EINVAL; | 836 | return -EINVAL; |
837 | } | 837 | } |
838 | if (ldef.t4file.data == 0) { | 838 | if (ldef.t4file.data == NULL) { |
839 | printk(KERN_DEBUG "kcapi: load: invalid parameter: dataptr is 0\n"); | 839 | printk(KERN_DEBUG "kcapi: load: invalid parameter: dataptr is 0\n"); |
840 | return -EINVAL; | 840 | return -EINVAL; |
841 | } | 841 | } |
@@ -951,7 +951,7 @@ int capi20_manufacturer(unsigned int cmd, void __user *data) | |||
951 | if (strcmp(driver->name, cdef.driver) == 0) | 951 | if (strcmp(driver->name, cdef.driver) == 0) |
952 | break; | 952 | break; |
953 | } | 953 | } |
954 | if (driver == 0) { | 954 | if (driver == NULL) { |
955 | printk(KERN_ERR "kcapi: driver \"%s\" not loaded.\n", | 955 | printk(KERN_ERR "kcapi: driver \"%s\" not loaded.\n", |
956 | cdef.driver); | 956 | cdef.driver); |
957 | return -ESRCH; | 957 | return -ESRCH; |
@@ -1004,9 +1004,9 @@ static int __init kcapi_init(void) | |||
1004 | return ret; | 1004 | return ret; |
1005 | kcapi_proc_init(); | 1005 | kcapi_proc_init(); |
1006 | 1006 | ||
1007 | if ((p = strchr(revision, ':')) != 0 && p[1]) { | 1007 | if ((p = strchr(revision, ':')) != NULL && p[1]) { |
1008 | strlcpy(rev, p + 2, sizeof(rev)); | 1008 | strlcpy(rev, p + 2, sizeof(rev)); |
1009 | if ((p = strchr(rev, '$')) != 0 && p > rev) | 1009 | if ((p = strchr(rev, '$')) != NULL && p > rev) |
1010 | *(p-1) = 0; | 1010 | *(p-1) = 0; |
1011 | } else | 1011 | } else |
1012 | strcpy(rev, "1.0"); | 1012 | strcpy(rev, "1.0"); |