summaryrefslogtreecommitdiff
path: root/drivers/staging/pohmelfs/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/pohmelfs/config.c')
-rw-r--r--drivers/staging/pohmelfs/config.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/pohmelfs/config.c b/drivers/staging/pohmelfs/config.c
index 39413b7d387d..b6c42cb0d1c6 100644
--- a/drivers/staging/pohmelfs/config.c
+++ b/drivers/staging/pohmelfs/config.c
@@ -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.
*/
@@ -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);
}