mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:20:49 +07:00
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>
This commit is contained in:
parent
c4cf3ba4f3
commit
3db593e8af
@ -434,7 +434,6 @@ 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);
|
||||
mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user