|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH] contrib/plugins/cache.c: Remove redundant check of l2_access |
Date: | Thu, 25 Jul 2024 21:55:31 +0200 |
User-agent: | Mozilla Thunderbird |
On 25/7/24 18:48, Peter Maydell wrote:
In append_stats_line(), we have an expression l2_access ? l2_miss_rate : 0.0 But this is inside an if (l2_access && l2_misses) { ... } block, so Coverity points out that the false part of the ?: is dead code. Remove the unnecessary test. Resolves: Coverity CID 1522458 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- contrib/plugins/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |