aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/capifs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/capi/capifs.c')
-rw-r--r--drivers/isdn/capi/capifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c
index 6d7c47ec0367..eafe0e9daa7c 100644
--- a/drivers/isdn/capi/capifs.c
+++ b/drivers/isdn/capi/capifs.c
@@ -189,9 +189,9 @@ static int __init capifs_init(void)
189 char *p; 189 char *p;
190 int err; 190 int err;
191 191
192 if ((p = strchr(revision, ':')) != 0 && p[1]) { 192 if ((p = strchr(revision, ':')) != NULL && p[1]) {
193 strlcpy(rev, p + 2, sizeof(rev)); 193 strlcpy(rev, p + 2, sizeof(rev));
194 if ((p = strchr(rev, '$')) != 0 && p > rev) 194 if ((p = strchr(rev, '$')) != NULL && p > rev)
195 *(p-1) = 0; 195 *(p-1) = 0;
196 } else 196 } else
197 strcpy(rev, "1.0"); 197 strcpy(rev, "1.0");