diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-16 20:06:12 +0200 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2014-07-03 16:38:09 -0500 |
commit | 3db593e8af0a7361037a2abbe8910d4e44041d89 (patch) | |
tree | f9cd58ef17a3adb63638de5e1848994315ebb17d /fs/ecryptfs/messaging.c | |
parent | c4cf3ba4f34819170fee43532f729e2fc6aa9a76 (diff) | |
download | op-kernel-dev-3db593e8af0a7361037a2abbe8910d4e44041d89.zip op-kernel-dev-3db593e8af0a7361037a2abbe8910d4e44041d89.tar.gz |
fs/ecryptfs/messaging.c: remove null test before kfree
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: ecryptfs@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'fs/ecryptfs/messaging.c')
-rw-r--r-- | fs/ecryptfs/messaging.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c index e57380e..286f10b 100644 --- a/fs/ecryptfs/messaging.c +++ b/fs/ecryptfs/messaging.c @@ -434,8 +434,7 @@ void ecryptfs_release_messaging(void) mutex_lock(&ecryptfs_msg_ctx_lists_mux); for (i = 0; i < ecryptfs_message_buf_len; i++) { mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); - if (ecryptfs_msg_ctx_arr[i].msg) - kfree(ecryptfs_msg_ctx_arr[i].msg); + kfree(ecryptfs_msg_ctx_arr[i].msg); mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); } kfree(ecryptfs_msg_ctx_arr); |