target/arm: remove redundant code
authorDenis Rastyogin <gerben@altlinux.org>
Tue, 17 Dec 2024 15:05:39 +0000 (15:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Dec 2024 15:05:39 +0000 (15:05 +0000)
This call is redundant as it only retrieves a value that is not used further.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Denis Rastyogin <gerben@altlinux.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241212120618.518369-1-gerben@altlinux.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/vfp_helper.c

index 5a19af509c3ca82f421ffee1f4e5d3ae2b0d4dab..df4ff464792c0fc3abf73aecad29fec7ad655b24 100644 (file)
@@ -1099,8 +1099,6 @@ float64 HELPER(rintd)(float64 x, void *fp_status)
 
     ret = float64_round_to_int(x, fp_status);
 
-    new_flags = get_float_exception_flags(fp_status);
-
     /* Suppress any inexact exceptions the conversion produced */
     if (!(old_flags & float_flag_inexact)) {
         new_flags = get_float_exception_flags(fp_status);