From 7d02c92de8712b5fc8684f423d2e3089a302bc19 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 21 Dec 2013 09:59:31 +0800 Subject: [PATCH] code style: more fix for cs.c --- cs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cs.c b/cs.c index aad56878..0c6e31c7 100644 --- a/cs.c +++ b/cs.c @@ -46,10 +46,10 @@ cs_err cs_open(cs_arch arch, cs_mode mode, csh *handle) ud->reg_name = NULL; ud->detail = CS_OPT_ON; // by default break instruction into details - if (init_arch[ud->arch]) - init_arch[ud->arch](ud); + if (init_arch[ud->arch]) + init_arch[ud->arch](ud); else - return CS_ERR_HANDLE; + return CS_ERR_HANDLE; *handle = (uintptr_t)ud; @@ -137,11 +137,11 @@ cs_err cs_option(csh ud, cs_opt_type type, size_t value) return CS_ERR_CSH; if (type == CS_OPT_DETAIL) { - handle->detail = value; - return CS_ERR_OK; - } + handle->detail = value; + return CS_ERR_OK; + } - if (option_arch[handle->arch]) + if (option_arch[handle->arch]) return option_arch[handle->arch](handle, type, value); return CS_ERR_OK;