From 95e9e7727f9342f724b7a936f1053e6f415a3679 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 7 Jul 1995 02:12:51 +0000 Subject: (bfd_mach_host_arch_mach): Remove assignment from inside if test. --- exec/hostarch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exec/hostarch.c') diff --git a/exec/hostarch.c b/exec/hostarch.c index 398e6423..38a38a00 100644 --- a/exec/hostarch.c +++ b/exec/hostarch.c @@ -35,8 +35,8 @@ bfd_mach_host_arch_mach (host_t host, struct host_basic_info hostinfo; mach_msg_type_number_t hostinfocnt = HOST_BASIC_INFO_COUNT; - if (err = host_info (host, HOST_BASIC_INFO, - (natural_t *) &hostinfo, &hostinfocnt)) + err = host_info (host, HOST_BASIC_INFO, (natural_t *) &hostinfo, &hostinfocnt); + if (err) return err; *machine = hostinfo.cpu_subtype; -- cgit v1.2.3