Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
[deliverable/linux.git] / drivers / staging / pohmelfs / config.c
index 89279ba1b7378aee57230d1964d072fb4b38e703..b6c42cb0d1c64208d4b803b7563fc082385d92a6 100644 (file)
@@ -134,7 +134,7 @@ int pohmelfs_copy_config(struct pohmelfs_sb *psb)
                goto out_unlock;
 
        /*
-        * Run over all entries in given config group and try to crate and
+        * Run over all entries in given config group and try to create and
         * initialize those, which do not exist in superblock list.
         * Skip all existing entries.
         */
@@ -525,7 +525,7 @@ static void pohmelfs_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *n
 {
        int err;
 
-       if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN))
+       if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
                return;
 
        switch (msg->flags) {
@@ -601,11 +601,9 @@ void pohmelfs_config_exit(void)
 
                list_del(&g->group_entry);
 
-               if (g->hash_string)
-                       kfree(g->hash_string);
+               kfree(g->hash_string);
 
-               if (g->cipher_string)
-                       kfree(g->cipher_string);
+               kfree(g->cipher_string);
 
                kfree(g);
        }
This page took 0.029633 seconds and 5 git commands to generate.