Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1381066lqh; Mon, 6 May 2024 06:16:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhxXFJzJ1eCMLIL4AwlOREQSU3N6kgo20oo6HNy6NdvlIaAuL+dgYLkFFsXKMnlAzOGXaDfZQtBuQ/2FvFNRcBSzXFOxeekzyrvb+QlA== X-Google-Smtp-Source: AGHT+IEBCgdHhqDJ/Ile1SugprAeuO5cTxWMGY0ohPm8SCIi6Ld05LCqW4IdNFNsX62xpMCGU/DR X-Received: by 2002:a17:902:ea06:b0:1ec:28e4:691f with SMTP id s6-20020a170902ea0600b001ec28e4691fmr11506600plg.63.1715001374129; Mon, 06 May 2024 06:16:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715001374; cv=pass; d=google.com; s=arc-20160816; b=bMdGvqaYlfRpb4zFP9eVjbVFIEbSIjdmQSSYYOSFM8kUXyytc79lwgkLDjLtxS7/Vr 6iEbaiVpt7yWlH+5Bfc9SW3d7DjLNvoMEb3Eh53AjSwaccP3ah3unlMvRFBCrmbsRz1D K70so5RgUm5tsFFqEXW7O/sjnfDYBd9EW7E/LcfCNl4OW+rXFiwak/OOxNLMmIDViSCD 8SPbPSJLAlojn0CTZRS5u+9K6LgV7z1Khf77itdJA4u27WCJGqecpopsRIwMxBV1c6r2 0i/xWRUEjSnVbzmxCQiahbWKHxKMOG9uwQ9crF1VUqwvh77NofuIsMtQDpQWskh6yZZL KmrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TW70FZEZQvuWurZ9Rfe7Bu93sUKHtFZ3JM5ZJbfgfKo=; fh=chU18zwhHXKKyBOgOKvvDHcdSLB7IPIiut4aVQlbBx4=; b=xe6s252MRkhhLgwK4UbpOxC/XuRa9+OedRdtcsqGU4Y44DFa6nPcafQNlkZfSTRMnl 7Naq0XeUBeNCOV9LfeWiM/woEWzmv3ugFzi0nNc2UBvSY3Ntuxv0MVkeGuaL1NqftHZ5 b8IdUZ6yFmAN3Z1W86bu3MaPNIoSMfFNangoavSBPWPwj1sOyILDdiEstQ+RFy6sBvhF cSYCz3CxUsUsfC63WovW9ZszygURm6CRtyfOBa9MnU+nuRbkVBLWCp4OwXloPbTQvwpd MkD7u3dEGY5odK0Y8fo6Gm4l+UrVyCex2mPuSsbrQkoR/5V9KMUjKtxUWUfU7eO9wNXw 1lAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MnnsNmEQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e14-20020a170903240e00b001eb0f19f7e5si8688170plo.572.2024.05.06.06.16.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 06:16:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MnnsNmEQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0594D282DB6 for ; Mon, 6 May 2024 08:59:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DEB41422AA; Mon, 6 May 2024 08:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MnnsNmEQ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 EB5531420B9; Mon, 6 May 2024 08:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985966; cv=none; b=S+F6fdkViFbXu3jt6YRmGxJtoF2/Q6+yzkLMkHUY3T161Nyon64PFq5iIzmXyJ0LTJQ1IAcBHCZpZgvXO6W9VDsWQsBWuSXc/DApF/t1yaM2e2GgbCM91d62aOOP9uxM/Jhd4dhOh2890hqb/3nL63x5GroJqVvu88IE0G5pUqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985966; c=relaxed/simple; bh=meoAl7VJ4L0S2JcmCiwLtvhomwsvNljoLTF7oZEN7cE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kPU2LkBS9aTC11UwBo6VMlbq08W4f15Fc2wb9rqqXNblOAjmrrP1ziWC+CBSyaMwZtxkViduP+XVZxPyDs+QbTEpENT7eh2jzQvxzsjk+8G9Linlovw1N3mWGHlb5xgbrD4Pr8Sf6WDMXvIeXUXSiFu0Ub2NQQzrDPJT+FDM5uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MnnsNmEQ; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714985965; x=1746521965; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=meoAl7VJ4L0S2JcmCiwLtvhomwsvNljoLTF7oZEN7cE=; b=MnnsNmEQB7CwgfGLb94babQ2IqYlaPiv7+5UrMcnGsK+TdS4DRP56BZf Z+MgnI8R7V8UOjvyVCrvM+ieFZ9aarcN0JnHP3VHJRdoMkiFb9rRqZuHM N3t0iWeiORZvl2snuojV9H4V6GnUWMCw6BIEna15+tm9+LFNw6vLtpp/2 66wlqZ88EJKmPvTk+UHdZDFRLM7dQ4L/rIStAQCKujuecjRJcrc9F2FyH tYALGQJZ24SzVT2dy7//WGo4+0PkSi0bfLVXQVBcLEtFL2YWyJAMc9HFB /odrO6iDti1eDyzC5zzRL2/o10XLXrHC6xcv4O0wP04whwf7Y6pcWt+8h g==; X-CSE-ConnectionGUID: DHHrQsUHR7Gp069IjnVYrQ== X-CSE-MsgGUID: 2mAS7ecmRP6b43SQTA3neA== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="21277119" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="21277119" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 01:59:24 -0700 X-CSE-ConnectionGUID: 5HzU3DBkQGC6kLo+lFofBQ== X-CSE-MsgGUID: LOsICayAREi2ReqULgzh4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="32910466" Received: from kuha.fi.intel.com ([10.237.72.185]) by orviesa005.jf.intel.com with SMTP; 06 May 2024 01:59:20 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 06 May 2024 11:59:19 +0300 Date: Mon, 6 May 2024 11:59:19 +0300 From: Heikki Krogerus To: R Sundar Cc: gregkh@linuxfoundation.org, neil.armstrong@linaro.org, dmitry.baryshkov@linaro.org, u.kleine-koenig@pengutronix.de, christophe.jaillet@wanadoo.fr, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, javier.carrasco.cruz@gmail.com Subject: Re: [PATCH v5 linux-next] usb:typec:mux: remove indentation for common path Message-ID: References: <20240426164705.2717-1-prosunofficial@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240426164705.2717-1-prosunofficial@gmail.com> Hi Sundar, On Fri, Apr 26, 2024 at 10:17:05PM +0530, R Sundar wrote: > Nitpick, Mostly common path will not be indented. so rewritten this > function to check device_node pointer is null and removed common path > indentation. > > Signed-off-by: R Sundar For the record, I'm still uncomfortable with the name - why not just spell out your whole name? > --- > > Fixed nitpicks in code according to comments received on other patch as > below: > > [ Nit, this function should be rewritten to not work like this, the > "common" path should not be indented, but only the exception (i.e. bail > if ep is not allocated properly.) ] > https://lore.kernel.org/all/2024041103-doornail-professor-7c1e@gregkh/ > > Goal is to get rid of of_node_put,but sending this patch first to do one > thing at a time. > > Changes since v1 - fixed the typo error for spell from identation to > indentation > > Changes since v2 - Shifted the indentation to one level left for the > switch cases as per coding style. > > Changes since v3 - Added descriptive subject for the patch and checked > from and sign-off having same name. > > Changes since v4 - Fixed name in signed-off-by as in documents. > > Patches link: > ------------ > v1 - https://lore.kernel.org/all/20240420145522.15018-1-prosunofficial@gmail.com/ > v2 - https://lore.kernel.org/linux-usb/20240420164927.15290-1-prosunofficial@gmail.com/ > v3 - https://lore.kernel.org/all/20240421011647.3027-1-prosunofficial@gmail.com/ > v4 - https://lore.kernel.org/all/20240424150718.5006-1-prosunofficial@gmail.com/ > > drivers/usb/typec/mux/nb7vpq904m.c | 68 +++++++++++++++--------------- > 1 file changed, 34 insertions(+), 34 deletions(-) Sorry for missing this earlier, but it looks like this patch only modifies the nb7vpq904m driver, so I think you should specify that already in the subject. While at it, you could also specify the only function that is being modified in the commit message (this is just a suggestion): usb: typec: nb7vpq904m: Remove uneeded indentation In function nb7vpq904m_parse_data_lanes_mapping(), the "if (ep)" condition is basically the entire function. Making the code a bit more readable by inverting the condition so that the function returns immedately if there is no "ep". thanks, -- heikki