diff options
Diffstat (limited to 'drivers/isdn/hardware/avm/b1pcmcia.c')
-rw-r--r-- | drivers/isdn/hardware/avm/b1pcmcia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hardware/avm/b1pcmcia.c b/drivers/isdn/hardware/avm/b1pcmcia.c index e479c0aef38d..7740403b40e1 100644 --- a/drivers/isdn/hardware/avm/b1pcmcia.c +++ b/drivers/isdn/hardware/avm/b1pcmcia.c | |||
@@ -201,9 +201,9 @@ static int __init b1pcmcia_init(void) | |||
201 | char *p; | 201 | char *p; |
202 | char rev[32]; | 202 | char rev[32]; |
203 | 203 | ||
204 | if ((p = strchr(revision, ':')) != 0 && p[1]) { | 204 | if ((p = strchr(revision, ':')) != NULL && p[1]) { |
205 | strlcpy(rev, p + 2, 32); | 205 | strlcpy(rev, p + 2, 32); |
206 | if ((p = strchr(rev, '$')) != 0 && p > rev) | 206 | if ((p = strchr(rev, '$')) != NULL && p > rev) |
207 | *(p-1) = 0; | 207 | *(p-1) = 0; |
208 | } else | 208 | } else |
209 | strcpy(rev, "1.0"); | 209 | strcpy(rev, "1.0"); |