From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 41BED1C32 for ; Tue, 16 Aug 2022 05:12:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19C80C433C1; Tue, 16 Aug 2022 05:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660626774; bh=0NPCl8h/PhjoO6Udfj2C+IRqq9TJkwg8U+5iaTjcdhQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WCHOmWEx9qhPG1+ocGxP2ppCfP6gcV8IFx1eF9iRd1VT7XQS2ntm5onLCq9u/u6BW iPkVqkRUNZXHJTQazU2k8t6b29GHnyiowYvoTVmvczo1TPk4vx29N/yv7xXdbGVhgX 1zC9ei14STqkiLjEVF5/nJ2zsKB25QYeb1S09sL6U+qZfWIHe5X7Wk6eP+Pr9NV2ei sHSobNc1Rof+w/GWRr+CMOyFHHZz5fUjJ/ke+ZWZuOyBy7rzrZo+ELcBZ3bcCeV5TN oUYQcR5MUcT4aD/0jA4M3i39fsVHDC3qXMhPq5lKao92PoQLxG4QuNwrui2mwH7X88 05L5AL8suwPQw== Date: Tue, 16 Aug 2022 05:12:50 +0000 From: Tzung-Bi Shih To: Prashant Malani Cc: linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, bleung@chromium.org, Daisuke Nojiri , "Dustin L. Howett" , Greg Kroah-Hartman , Guenter Roeck , "Gustavo A. R. Silva" , Kees Cook , Tinghan Shen , Xiang wangx Subject: Re: [PATCH v5 6/7] platform/chrome: cros_ec_typec: Cleanup switch handle return paths Message-ID: References: <20220815063555.1384505-1-pmalani@chromium.org> <20220815063555.1384505-7-pmalani@chromium.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815063555.1384505-7-pmalani@chromium.org> On Mon, Aug 15, 2022 at 06:34:28AM +0000, Prashant Malani wrote: > Some of the return paths for the cros_typec_get_switch_handles() > aren't necessary. Clean up the return paths to only undo the handle > get's which succeeded. > > Signed-off-by: Prashant Malani Reviewed-by: Tzung-Bi Shih