]> xenbits.xensource.com Git - xen.git/commit
tmem: remove dumb check in do_tmem_destroy_pool
authorJulien Grall <julien.grall@linaro.org>
Fri, 4 Apr 2014 09:13:32 +0000 (11:13 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 22 May 2014 15:44:36 +0000 (16:44 +0100)
commit6ce0c3fca9bd1c0d45908452d6e5e9f7bf22f7b7
treef6dd767afa5c95d7f704f234f12259505805e714
parentc32c41e21f8b2d16f98f50b9ddbd37ae656fc020
tmem: remove dumb check in do_tmem_destroy_pool

do_tmem_destroy_pool is checking if pools == NULL. But, pools is a fixed
array.

Clang 3.5 will fail to compile xen/common/tmem.c with the following error:
tmem.c:1848:18: error: comparison of array 'client->pools' equal to a null
pointer is always false [-Werror,-Wtautological-pointer-compare]
    if ( client->pools == NULL )

Coverity-ID:1055632

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit ac0f56a2fa407e0704fade12630a5a960dedce87)
xen/common/tmem.c