From nobody Sun Feb 8 10:49:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1578336624; cv=none; d=zohomail.com; s=zohoarc; b=ZaLBy4mHTKNuQc0IvmAptoWwinbWCfUEEsTzVhYOXgogtmjtCmi34h+Tbgr6bAX/K31GdTc1ohkCRBLoCLSBJp7Lq7vWNpWJ8mRh91n38Vi1+5gwvH+3eyYOKa3gD6yXVcXrTTIgcyLI1lW2SKaWBbqSrUzCvyqSOcaY5SVPU+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578336624; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dFCW/pT3CYgJTCfIMv+vOfdNZ6PcIxCGOVhdGgC1DCo=; b=fWd6p7E1nIB6G1BTYO9t7bt3OYKIK5yXWJtePUaFwZPy2yVaMQcLZLaxy4TJUX0zv61iDNbzgiNGni2X96YLlHq9cq+tQ35V1TtE6DRAlYKUr2N7t1Zm6aimD7TO4chKWEkTjF+ZDggw2rhq9636l7+e1vjsxurhrg+KGLYuQD0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578336624636543.6223145738703; Mon, 6 Jan 2020 10:50:24 -0800 (PST) Received: from localhost ([::1]:58060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioXSJ-00086u-Aa for importer@patchew.org; Mon, 06 Jan 2020 13:50:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46046) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioX4i-0002zH-SE for qemu-devel@nongnu.org; Mon, 06 Jan 2020 13:26:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioX4h-0004lK-Nk for qemu-devel@nongnu.org; Mon, 06 Jan 2020 13:26:00 -0500 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:41709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioX4h-0004l9-K3; Mon, 06 Jan 2020 13:25:59 -0500 Received: by mail-qt1-x844.google.com with SMTP id k40so43186044qtk.8; Mon, 06 Jan 2020 10:25:59 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:655b:9e1c:e865:3705:e1df]) by smtp.gmail.com with ESMTPSA id b81sm21026522qkc.135.2020.01.06.10.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 10:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dFCW/pT3CYgJTCfIMv+vOfdNZ6PcIxCGOVhdGgC1DCo=; b=oSgpl5Ca3cVgcfTotPuV6oPNOhUXbeDmGSk8zwp8nSnzWxSkS+fSYd3s7qHkr7kLuP LKNlPwfxGyQ0YIlWex+7ezogXdP22mFl9A7QOrMyVGTU/aBh/U4Vw4XW4GkBSFnmuG7o F6UKcQiHj6/uoaso0x2kYzErEBlag08WX+SEB9Kyw8B0aVWFerJwB2f9TyDy54/3OjDa bWu9CO4jiE/NBFiUwn6gYil8UwOEvdGFdqocXL3gzzzuQ7Q/o7Ri8/NcTrqnNddffeId vGROkOnHE7xn3EocOyRMiAh1yC2Ckv9gYF6uUlJtRzH9LXdAmlvn4c45ddq87HWdyIg5 GYtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dFCW/pT3CYgJTCfIMv+vOfdNZ6PcIxCGOVhdGgC1DCo=; b=Mgk41Fq3lrncJIjEBQK2T+WrGhRkx01E+l4Uo1Rx85xvGsHjThnPPOAxtNjlDf927n 1/E+W8SqInTqQfW0094OoirttabpH+pi9F2UieEJvtyH0m4O1aA6sw3+eI97xoYWhVHQ iR4ZNaJOZKLvoL+JTOahmOSzfJZsjyyAexmBd5kKlmwXE49J/6lopGUxxV/0DfqzM7CA K6SyTE0NX4a1qDu81KZKzfPdZHOdbVSLl1zbQb8bXXrUUET4182BKs8D5TkCx0hAuz2H 5Qw39e7gbHV5giJikNdWsAVK/m63sB6lttATW3WrAbJws5qFAfHhT5beBbp18SVwMrmG djcw== X-Gm-Message-State: APjAAAVGtNWjjWV+Sx4d72pj8dhUPlYLhInKJgnRGGy74ayxS9PronUs ndSlsrGKOjChu3mvDIcXlz7WdIbm X-Google-Smtp-Source: APXvYqzhcjveduVulYsE2b+5+6bnrZ4v4OsEJnrftTuEJ50lwBr9HCbWoFJXSIlnlr8iFTsXB+lZnQ== X-Received: by 2002:ac8:1194:: with SMTP id d20mr75595878qtj.243.1578335159069; Mon, 06 Jan 2020 10:25:59 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH v1 37/59] s390x/event-facility.c: remove unneeded labels Date: Mon, 6 Jan 2020 15:24:03 -0300 Message-Id: <20200106182425.20312-38-danielhb413@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106182425.20312-1-danielhb413@gmail.com> References: <20200106182425.20312-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::844 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Halil Pasic , Daniel Henrique Barboza , Christian Borntraeger , Cornelia Huck Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 'out' label from write_event_mask(), handle_sccb_read_events() and write_event_data() can be replaced by 'return'. CC: Cornelia Huck CC: Halil Pasic CC: Christian Borntraeger Signed-off-by: Daniel Henrique Barboza Reviewed-by: Thomas Huth --- hw/s390x/event-facility.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c index 6afe278cad..f3b9661f32 100644 --- a/hw/s390x/event-facility.c +++ b/hw/s390x/event-facility.c @@ -182,11 +182,11 @@ static void write_event_data(SCLPEventFacility *ef, S= CCB *sccb) { if (sccb->h.function_code !=3D SCLP_FC_NORMAL_WRITE) { sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INVALID_FUNCTION); - goto out; + return; } if (be16_to_cpu(sccb->h.length) < 8) { sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INSUFFICIENT_SCCB_LE= NGTH); - goto out; + return; } /* first do a sanity check of the write events */ sccb->h.response_code =3D cpu_to_be16(write_event_length_check(sccb)); @@ -196,9 +196,6 @@ static void write_event_data(SCLPEventFacility *ef, SCC= B *sccb) sccb->h.response_code =3D cpu_to_be16(handle_sccb_write_events(ef, sccb)); } - -out: - return; } =20 static uint16_t handle_sccb_read_events(SCLPEventFacility *ef, SCCB *sccb, @@ -262,7 +259,7 @@ static void read_event_data(SCLPEventFacility *ef, SCCB= *sccb) =20 if (be16_to_cpu(sccb->h.length) !=3D SCCB_SIZE) { sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INSUFFICIENT_SCCB_LE= NGTH); - goto out; + return; } =20 sclp_cp_receive_mask =3D ef->receive_mask; @@ -280,18 +277,15 @@ static void read_event_data(SCLPEventFacility *ef, SC= CB *sccb) (sclp_active_selection_mask & ~sclp_cp_receive_mask)) { sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INVALID_SELECTION_MASK); - goto out; + return; } break; default: sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INVALID_FUNCTION); - goto out; + return; } sccb->h.response_code =3D cpu_to_be16( handle_sccb_read_events(ef, sccb, sclp_active_selection_mask)); - -out: - return; } =20 static void write_event_mask(SCLPEventFacility *ef, SCCB *sccb) @@ -303,7 +297,7 @@ static void write_event_mask(SCLPEventFacility *ef, SCC= B *sccb) if (!mask_length || (mask_length > SCLP_EVENT_MASK_LEN_MAX) || ((mask_length !=3D 4) && !ef->allow_all_mask_sizes)) { sccb->h.response_code =3D cpu_to_be16(SCLP_RC_INVALID_MASK_LENGTH); - goto out; + return; } =20 /* @@ -328,9 +322,6 @@ static void write_event_mask(SCLPEventFacility *ef, SCC= B *sccb) =20 sccb->h.response_code =3D cpu_to_be16(SCLP_RC_NORMAL_COMPLETION); ef->mask_length =3D mask_length; - -out: - return; } =20 /* qemu object creation and initialization functions */ --=20 2.24.1