]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/isdn/capi/capifs.c
uninline arch_pick_mmap_layout()
[linux-2.6-omap-h63xx.git] / drivers / isdn / capi / capifs.c
index 6d7c47ec0367aa39026c358ad3948200893fe19c..550e80f390a63f87da84f84e9ec0290f75ca7151 100644 (file)
@@ -69,6 +69,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data)
                } else if (sscanf(this_char, "mode=%o%c", &n, &dummy) == 1)
                        mode = n & ~S_IFMT;
                else {
+                       kfree(new_opt);
                        printk("capifs: called with bogus options\n");
                        return -EINVAL;
                }
@@ -189,9 +190,9 @@ static int __init capifs_init(void)
        char *p;
        int err;
 
-       if ((p = strchr(revision, ':')) != 0 && p[1]) {
+       if ((p = strchr(revision, ':')) != NULL && p[1]) {
                strlcpy(rev, p + 2, sizeof(rev));
-               if ((p = strchr(rev, '$')) != 0 && p > rev)
+               if ((p = strchr(rev, '$')) != NULL && p > rev)
                   *(p-1) = 0;
        } else
                strcpy(rev, "1.0");