Staging: rdma:Delete unnecessary NULL check before calling function "kmem_cache_destroy"
authorYash Shah <yshah1@visteon.com>
Tue, 8 Dec 2015 10:24:17 +0000 (10:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 22:00:17 +0000 (14:00 -0800)
commit7438370a5150d6090957ab3e461d5b3a31f2181a
treeb474189e92ad6bb430162c515c31b9e599c04214
parenta054374f15428cbc1d9cb9cba17ce870eaa7d60f
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: Yash Shah <yshah1@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/ehca/ehca_av.c
drivers/staging/rdma/ehca/ehca_cq.c
drivers/staging/rdma/ehca/ehca_main.c
drivers/staging/rdma/ehca/ehca_mrmw.c
drivers/staging/rdma/ehca/ehca_pd.c
drivers/staging/rdma/ehca/ehca_qp.c