Commit 7438370a authored by Yash Shah's avatar Yash Shah Committed by Greg Kroah-Hartman
Browse files

Staging: rdma:Delete unnecessary NULL check before calling function "kmem_cache_destroy"



The kmem_cache_destroy() function tests whether its argument is NULL
and then returns immediately.
Thus the NULL check before calling this function is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarYash Shah <yshah1@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a054374f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment