diff options
Diffstat (limited to 'drivers/isdn/hardware/avm/b1dma.c')
-rw-r--r-- | drivers/isdn/hardware/avm/b1dma.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/hardware/avm/b1dma.c b/drivers/isdn/hardware/avm/b1dma.c index 669f6f67449c..da34b98e3de7 100644 --- a/drivers/isdn/hardware/avm/b1dma.c +++ b/drivers/isdn/hardware/avm/b1dma.c | |||
@@ -883,11 +883,11 @@ int b1dmactl_read_proc(char *page, char **start, off_t off, | |||
883 | default: s = "???"; break; | 883 | default: s = "???"; break; |
884 | } | 884 | } |
885 | len += sprintf(page+len, "%-16s %s\n", "type", s); | 885 | len += sprintf(page+len, "%-16s %s\n", "type", s); |
886 | if ((s = cinfo->version[VER_DRIVER]) != 0) | 886 | if ((s = cinfo->version[VER_DRIVER]) != NULL) |
887 | len += sprintf(page+len, "%-16s %s\n", "ver_driver", s); | 887 | len += sprintf(page+len, "%-16s %s\n", "ver_driver", s); |
888 | if ((s = cinfo->version[VER_CARDTYPE]) != 0) | 888 | if ((s = cinfo->version[VER_CARDTYPE]) != NULL) |
889 | len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s); | 889 | len += sprintf(page+len, "%-16s %s\n", "ver_cardtype", s); |
890 | if ((s = cinfo->version[VER_SERIAL]) != 0) | 890 | if ((s = cinfo->version[VER_SERIAL]) != NULL) |
891 | len += sprintf(page+len, "%-16s %s\n", "ver_serial", s); | 891 | len += sprintf(page+len, "%-16s %s\n", "ver_serial", s); |
892 | 892 | ||
893 | if (card->cardtype != avm_m1) { | 893 | if (card->cardtype != avm_m1) { |
@@ -970,9 +970,9 @@ static int __init b1dma_init(void) | |||
970 | char *p; | 970 | char *p; |
971 | char rev[32]; | 971 | char rev[32]; |
972 | 972 | ||
973 | if ((p = strchr(revision, ':')) != 0 && p[1]) { | 973 | if ((p = strchr(revision, ':')) != NULL && p[1]) { |
974 | strlcpy(rev, p + 2, sizeof(rev)); | 974 | strlcpy(rev, p + 2, sizeof(rev)); |
975 | if ((p = strchr(rev, '$')) != 0 && p > rev) | 975 | if ((p = strchr(rev, '$')) != NULL && p > rev) |
976 | *(p-1) = 0; | 976 | *(p-1) = 0; |
977 | } else | 977 | } else |
978 | strcpy(rev, "1.0"); | 978 | strcpy(rev, "1.0"); |