Hi,
On 05/22/2017 02:32 PM, Jan Beulich wrote:
On 22.05.17 at 15:12, <andrew.coop...@citrix.com> wrote:
_PAGE_GNTTAB is only used in debug builds of Xen; in release builds, it has
the value 0. Coverity complains that "l1e_get_flags(l1e) & 0" is logically
dead.
Add an extra condition into the logic to skip the flag check if _PAGE_GNTTAB
is 0.
And this helps? To me "if ( 0 && ... )" and "if ( (x & 0) && ... )" look
logically the same (i.e. I'd expect the same warnings to be triggered
[or not]).
I haven't seen any answer on this question. Andrew, does this patch
still hold for Xen 4.9?
No functional change.
Coverity-ID: 1362036
Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
So provided the change really silences Coverity:
Acked-by: Jan Beulich <jbeul...@suse.com>
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel