Tag: 7438370a5150d6090957ab3e461d5b3a31f2181a

Staging: rdma:Delete unnecessary NULL check before calling function “kmem_cache_destroy”

Author: Yash Shah <yshah1@visteon.com> 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: Yash Shah Signed-off-by: Greg Kroah-Hartman — drivers/staging/rdma/ehca/ehca_av.c | 3 +– drivers/staging/rdma/ehca/ehca_cq.c | 3 +– drivers/staging/rdma/ehca/ehca_main.c | 3 …

Continue reading