xen/mm: Remove always true ASSERT() in free_heap_pages()
authorJulien Grall <jgrall@amazon.com>
Wed, 23 Feb 2022 18:38:31 +0000 (18:38 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 24 Feb 2022 14:57:55 +0000 (14:57 +0000)
commitf1097988b9baeb4cae38a1a71e027794291213ff
treebe3071d5f2d2e7158c40879b5b6f20f63239e604
parent93189e8c8b93e2c4658156e785a9b78b61e71a64
xen/mm: Remove always true ASSERT() in free_heap_pages()

free_heap_pages() has an ASSERT() checking that node is >= 0. However
node is defined as an unsigned int. So it cannot be negative.

Therefore remove the check as it will always be true.

Coverity-ID: 1055631
Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com><mailto:andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c