Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp818573lqh; Sun, 5 May 2024 03:31:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwiFcljHqPD4fULfQxStQOHo/lBFOA0Ay3Eko+bTiAM2Wb5rVpKev/b6gTWiZTc3q0AganlpFULbC4n+EQ1jcax/B+cQlHJKRNq8brRw== X-Google-Smtp-Source: AGHT+IELS6ud/sPgH6RXwLYV+6hDurqeigZK2Ex96yxK3e4pmXkjfqnQJ1zewoVPqdk4bQx+265T X-Received: by 2002:a17:907:7e9c:b0:a59:af4c:c7de with SMTP id qb28-20020a1709077e9c00b00a59af4cc7demr2564900ejc.58.1714905076687; Sun, 05 May 2024 03:31:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714905076; cv=pass; d=google.com; s=arc-20160816; b=owy5AJcurmv7n1btd3cMfbdAWNLPrRnfvdCZK+28ZjoHPMT2o2itaLkrcM/zA51FWX ocgNqVMiArujATX6jPwPo7aqJy8eNJEI06uqHRDb3f7WrtXsuPueBXl/Z3LJCCBV0B6H 6zuhteXbia5a1GI6oPW7k1KyWtwPUIsC7TLo5CjbsRWZ3+4bIbT8R5QW6M0e1JcpT7S1 axLE+iQad+vFAJZUdYvh/I3juo2KEdQVQonXAUBnbvScujvgEXPNymsPsYAiWXISw7j6 FgUGyi3He3HahDzEcnwiaGW+jl/+yAAMMNyyJa5BxFvuPDHimbSOprj60BKB606o+oiT a2vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=lmYUyRZqt4VeqnRX5yKD8WzCCYGdm9jSGKvpPNU6ebE=; fh=ULGsNqI0qm8ls6RYmlnOAMb6OKcJGyHzT4Iwv5bO4Sg=; b=m7lDWMKOwtDJHNuz70vWM6HzgnYm4NVMgKzm6YwycGyrsTx2bwQW9+njBMw53XtjAv 2NGlvmkFR5gRX2Qq1E7wSIsrh2RYxGBRioSYHvXAjcUWbWaglirAAfD9V+0fNl6x19WQ 7ScAOUlMRzF2zH1ZlHBEkP1/Y7Ki/nal3aS0wbMHlb080iMUsiFBjyT6rf7C2dYq1xz2 0eJYMITyPZJMP6tFTtcgwka9CH5TTJB1y09Fo2He76jnwxhf6QtwdIZlhvC+JWNc5C6n a4oxdsTVAQwax8O/lKmD70DJG7u+30zsC35XGYpO+6oblSJ6rYKwm8RwH3TL7z5Z/YvS lv9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Y8G8VjW0; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-168947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u6-20020a17090657c600b00a59ba852968si993193ejr.929.2024.05.05.03.31.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 03:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Y8G8VjW0; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-168947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 688641F215AD for ; Sun, 5 May 2024 10:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36E9112B6C; Sun, 5 May 2024 10:31:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="Y8G8VjW0" Received: from mout.web.de (mout.web.de [217.72.192.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B45981849; Sun, 5 May 2024 10:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714905062; cv=none; b=G5973t2PRoOHEo6hVcF7752BzFDRNeR536L9uyrgdtsKgNRbUW6T9kR/qoYCb1F08lwT29sth7/e8ywevH6oYbL20c4b8kiwzBf0nlrZdbneJmyq3gZA4xIxQa8OwsfGA7NwtYE9HQqmTllnigBZGlldWo0LOto5ex9FFsYWEJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714905062; c=relaxed/simple; bh=lmYUyRZqt4VeqnRX5yKD8WzCCYGdm9jSGKvpPNU6ebE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gZqrtj4kuxHQiaIXZJctujX450uvd0MhtbGccYJwUVwPdwW0iBui+DDg5zqHs5WmobkpAnxKGNOpLRPWYgyXCCKR/ZdqWsTRhagMK4F0qeL2ZV8aSWNcEwwKt59R5ZG4GycLUFRsuW6qBiVWPK9VlNUDHQEQ5Ous2my4ccy6S3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=Y8G8VjW0; arc=none smtp.client-ip=217.72.192.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1714905056; x=1715509856; i=markus.elfring@web.de; bh=lmYUyRZqt4VeqnRX5yKD8WzCCYGdm9jSGKvpPNU6ebE=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Y8G8VjW00jhjc+d55+67vkBiqupH0jCrTuvL68KC6MNA45BXOJ9njP+NnXWm9oQi Uaye+AfwQumd1sflKJ1XluvvdBXZS6LsxxRcYbvcFlCO01EkJN3hwrnFHMzRcQkB4 nzCWl3Rbru9T2vDNoEsdomSjARcUVa3eDzk6WtP7AlI5o480k9ezCYvc4+5pY57UD N8JuCiQ/YzguG1k/1/pADuoI+CleFekkX+W60niL7mtz86FqI/M7aBflhf2g2FZmi TVW8Tm+pkoAJ1EjrGf4bqV4cKXhzuuN9GFnghD83kfN/mrBt1lj8hoLAjzG1bhyv0 8l5Ds2XZIqO5tS1m+w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.83.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M1JAm-1s5Clh3dIg-003LgR; Sun, 05 May 2024 12:30:56 +0200 Message-ID: <31f78b18-0caa-45c0-af84-c95d525a13dc@web.de> Date: Sun, 5 May 2024 12:30:54 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Bluetooth: qca: Use common error handling code in two functions To: Julia Lawall , Luiz Augusto von Dentz , Marcel Holtmann , linux-bluetooth@vger.kernel.org, kernel-janitors@vger.kernel.org Cc: LKML References: Content-Language: en-GB From: Markus Elfring In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gsfazNnTrq021Kj/cnctGof1DoBOC1zAs8MxqeLWz6QCZG83Njh YPVEZ3fTOC5k4wiGy10KB3ZJQ3wRpiZw3VLyEULZen5Qd6fRFB6AzZIFiPq7DuajXbD8Pda +eVKia6xWwRYoK1OPtT4ibzv3PblV9PN6zYS+rimPGPzmcsc/20j+diE77CB4AJGd3Fb9I4 whT98KIigRHc9uhBmieWA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:C9cD6zfGOxE=;tV93v73JML6i1PpzlTZrOOrzw9L U5eR6xr1gf9QiVCI5VBzhYCRutSZkK/YZKvV8HggMxIoz7IF7sy7BlYZ1GGR5/NYCz2m2Fp8i YvNlage2+nAKpsyT7ncocGE6vRKhhjRHavq5zFSCPlb2a1OLAExwghZWqMkGvQdsdLNQU4iow 63Pi6dI0r8vnpkDs8+jVSCa6yPHJ+6VXqBKxjL9AOwH+YEHRmTdtr/uDITexhl1eU/1NV8v+1 vl1Sjj5L/it97+I2qTpkAP0phAUB8sHGFrG8rNdE8NQfnt2mPYNOzH23MlaI0/KKp/nCMtec6 yCNqkAtsAAWtrtpVcTgHovrBJAia3AsYWL5rmU5BFVw6/e/QplG8bFSPGYxl1QHgLkP1nCPQC ApavJ1lV2+EKvUfFrb+OSMuRIdMWUMqXN2YUhzWXKI1umoGIxspy63ciJ9JXG8FsGsmY5L4aO /iHsuYR4t3A5kSaC2nWOXqh/a8neFhiE83UIm+DD5Uj/B0J7NvKjMiksTgVT9YwhG0kFHcQdJ ASAFfRC1I5cyNBzpdqjn/UBNeeyIcLBTSpNiHOZIvE0chTvGGyt4juaPL87nfVQ6xdT9uYXTa 7R/rCZfgoecl4Qp+a8831prZGxhKqKQ3i3P1xzA9cfQVmiu3QEzp4VUaf4NrvIwTHioRQcq9G MgsMh5Muf+azTRjM1x8SxX5Mf/QgZtDRMdtHHxI9yK8lOL/dcU24TXBqpnvYjMZrifOywLNhS 1OiwSjW3uJgEuTcCrQyaEOZ5X+LcMdTLmj9rGNlaknoGX9kxFhEv/0QCIzY3AnjKGBIV6iQxZ XhxoX/Cb9n6eIFwhLjOEC3O0wBcjTWZeXuQBKgiLf5MAEmbcpZp2hDn83TDGBGLtE8 >> Add a jump target so that the setting of an error code can be better re= used >> at the end of these function implementations. =E2=80=A6 > This reduces readability, and backwards jumps are rarely desirable. Would you like to support any other design approaches better for the reduction of questionable source code duplication? Regards, Markus