]> xenbits.xensource.com Git - people/liuw/xen.git/commit
tools/xenalyze: Avoid redundant check
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 25 Feb 2016 14:48:57 +0000 (14:48 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:32 +0000 (16:32 +0000)
commit1b1ef6ac2acd025a3e00a51fe95994531f623d80
tree6f75557342ecae497ea9d0a895763a64dd718683
parentef67f9e9f5ec156bbd92d1f3c062c318446c0f9c
tools/xenalyze: Avoid redundant check

Coverity notices that if !head is true, that !N can never be true.

Don't bother checking N, since we know it has to be at least one.

CID 1354243

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xentrace/xenalyze.c