Rename 'err' as 'host_errno' to ease code review.

Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
 target/mips/tcg/sysemu/mips-semi.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/mips/tcg/sysemu/mips-semi.c 
b/target/mips/tcg/sysemu/mips-semi.c
index 3b1939365c4..4c924273c1b 100644
--- a/target/mips/tcg/sysemu/mips-semi.c
+++ b/target/mips/tcg/sysemu/mips-semi.c
@@ -90,14 +90,14 @@ static const uint16_t host_to_mips_errno[] = {
 #endif
 };
 
-static int errno_mips(int err)
+static int errno_mips(int host_errno)
 {
-    if (err < 0 || err >= ARRAY_SIZE(host_to_mips_errno)) {
+    if (host_errno < 0 || host_errno >= ARRAY_SIZE(host_to_mips_errno)) {
         return EINVAL;
-    } else if (host_to_mips_errno[err]) {
-        return host_to_mips_errno[err];
+    } else if (host_to_mips_errno[host_errno]) {
+        return host_to_mips_errno[host_errno];
     } else {
-        return err;
+        return host_errno;
     }
 }
 
-- 
2.31.1


Reply via email to