Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp198845pxf; Wed, 31 Mar 2021 00:39:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdHOYsSVhDW6hOZJO16KYCKUpox/XRvqIkEvb/MTzhhip9ubUhkDbfQEBn8Mi787g/UMFg X-Received: by 2002:a17:906:3385:: with SMTP id v5mr2081983eja.539.1617176374505; Wed, 31 Mar 2021 00:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617176374; cv=none; d=google.com; s=arc-20160816; b=NMDKit3Ykn5Deo1MsrZEIyMAkmhfMv6siIsOZmMh/1UP8/WQ8q+ZxzFOvk6TA3nN0C oPLEqQzuAkntv/V9yfBAUdl4RajbIwfOw9ttu7LeW1mAo1hPiFkT/1eW55ik3ykVPQ06 oG14QtL1MeOA66ahuQHVDGztUgVTjgCRC27GsVPMWVUNhtZEzmjGFXuwNbJfCEEuW+kN 3CiUHNIIC4xAxCtx4HiwoU1h717lejoKUVKWxGuEubmEfjGJystCpOXaditTR35C+ZKF OPHgXn6gRap6z9y4Qu6yPb1KJ11I0QyifAimMV/JQlV0D+9JXO/RJoIjjT22F3KVo5Cm AJQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+viNQ7s0EuB/ZSJ4svhZtADh80wLgH3+g7QOrgaw+aE=; b=iHlrrMxq6vJTo+E8MysmTCL/bc1LFwymNFdzy4uylhX0iwJMPCpJM7qt8c0A7pTDe6 0UhkesXDPqj4a1KKgrhBqU0YVa+cDmWH+IBK+ZSSctDaMtiVG0vlLiIq+8CncMj52I9i PFkpP8Km7La6UGHXUWYboqAppII7nNdS7T0fZ17xq9+6o9j3AaL/BYmmhf2kTkvu38kV lUa73dh2a4Eor0SwdQ3fMUyb/loODRRozX5ocqfFZoB2IfJRCFtyIC0q1v22ZUNCVxDQ hV1F990k9afHS9V/v/T2M9cstVeTQxxP8sLOYINdUW4fOvO2GXmqVqIM7cgX3C1yrh6v HWyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si1226510edc.448.2021.03.31.00.39.11; Wed, 31 Mar 2021 00:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234171AbhCaHiO (ORCPT + 99 others); Wed, 31 Mar 2021 03:38:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54048 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbhCaHhx (ORCPT ); Wed, 31 Mar 2021 03:37:53 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 59DBE1F45444 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org, Prashant Malani Cc: Benson Leung , Guenter Roeck Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Check for device within remove function Date: Wed, 31 Mar 2021 09:37:43 +0200 Message-Id: <161717624818.4118309.9224826406108424193.b4-ty@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210319015103.3751672-1-pmalani@chromium.org> References: <20210319015103.3751672-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Mar 2021 18:51:03 -0700, Prashant Malani wrote: > In a couple of call sites, we use the same pattern of checking for a > partner or cable device before attempting to remove it. Simplify this by > moving those checks into the remove functions. Applied, thanks! [1/1] platform/chrome: cros_ec_typec: Check for device within remove function commit: 639ff208cb37c5a3f0198e62d04962b677d25c9c Best regards, -- Enric Balletbo i Serra