Stop needlessly using static variable

* syscall.c: Remove static long psr.
(get_scno): Use local psr variable.
(get_syscall_result): Likewise.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/syscall.c b/syscall.c
index 0eb1fd1..2f7f706 100644
--- a/syscall.c
+++ b/syscall.c
@@ -670,7 +670,7 @@
  */
 static struct user_regs_struct x86_64_regs;
 #elif defined(IA64)
-long r8, r10, psr; /* TODO: make static? */
+long r8, r10; /* TODO: make static? */
 long ia32 = 0; /* not static */
 #elif defined(POWERPC)
 static long ppc_result;
@@ -1096,6 +1096,7 @@
 	update_personality(tcp, currpers);
 #elif defined(IA64)
 #	define IA64_PSR_IS	((long)1 << 34)
+	long psr;
 	if (upeek(tcp, PT_CR_IPSR, &psr) >= 0)
 		ia32 = (psr & IA64_PSR_IS) != 0;
 	if (ia32) {
@@ -1853,6 +1854,7 @@
 	/* already done by get_regs */
 #elif defined(IA64)
 #	define IA64_PSR_IS	((long)1 << 34)
+	long psr;
 	if (upeek(tcp, PT_CR_IPSR, &psr) >= 0)
 		ia32 = (psr & IA64_PSR_IS) != 0;
 	if (upeek(tcp, PT_R8, &r8) < 0)