summaryrefslogtreecommitdiffstats
path: root/sys-utils/setarch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r--sys-utils/setarch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
index 5f187a764..35efca4a9 100644
--- a/sys-utils/setarch.c
+++ b/sys-utils/setarch.c
@@ -148,7 +148,7 @@ int set_arch(const char *pers, unsigned long options)
{
struct utsname un;
int i;
- unsigned long pers_value, res;
+ unsigned long pers_value;
struct {
int perval;
@@ -214,8 +214,7 @@ int set_arch(const char *pers, unsigned long options)
errx(EXIT_FAILURE, _("%s: Unrecognized architecture"), pers);
pers_value = transitions[i].perval | options;
- res = set_pers(pers_value);
- if(res == -EINVAL)
+ if (set_pers(pers_value) == -EINVAL)
return 1;
uname(&un);