diff options
Diffstat (limited to 'drivers/isdn/hardware/avm/b1pci.c')
-rw-r--r-- | drivers/isdn/hardware/avm/b1pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hardware/avm/b1pci.c b/drivers/isdn/hardware/avm/b1pci.c index 90e2e6643d19..5b314a2c4049 100644 --- a/drivers/isdn/hardware/avm/b1pci.c +++ b/drivers/isdn/hardware/avm/b1pci.c | |||
@@ -382,9 +382,9 @@ static int __init b1pci_init(void) | |||
382 | char rev[32]; | 382 | char rev[32]; |
383 | int err; | 383 | int err; |
384 | 384 | ||
385 | if ((p = strchr(revision, ':')) != 0 && p[1]) { | 385 | if ((p = strchr(revision, ':')) != NULL && p[1]) { |
386 | strlcpy(rev, p + 2, 32); | 386 | strlcpy(rev, p + 2, 32); |
387 | if ((p = strchr(rev, '$')) != 0 && p > rev) | 387 | if ((p = strchr(rev, '$')) != NULL && p > rev) |
388 | *(p-1) = 0; | 388 | *(p-1) = 0; |
389 | } else | 389 | } else |
390 | strcpy(rev, "1.0"); | 390 | strcpy(rev, "1.0"); |