Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5350787rwe; Tue, 18 Apr 2023 05:54:48 -0700 (PDT) X-Google-Smtp-Source: AKy350aJA8sBnwcdM9M4Jx3A+cAGwrmuozjpT5UTcIu1cw9GPC0VEpox+ZM9d4Jg6Hwu9rw8GvQz X-Received: by 2002:a05:6a20:2445:b0:ef:85a6:464d with SMTP id t5-20020a056a20244500b000ef85a6464dmr10047768pzc.13.1681822487925; Tue, 18 Apr 2023 05:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681822487; cv=none; d=google.com; s=arc-20160816; b=vuaj5iRX/QnmcgD26M0KLvwrjo7Jo296AL4TDTR/24e5+7U+P1DJJ7TS+NY7oiD4/+ lRAOT4urVGRuDb9/QeKyw0Xmd6G/HSFrlI4/ugtcy512WLQpEKrTO1PLVWnCwUb4jCv1 N/hTPKhQcqgr9Yb6u8+qxAFkBhniM69BwPxYHI9ieODk/N00isT6xMilEBSMnBG9Q6fw aSccPkIGoHHoXubOBEu6h5vt0PkNMwc2U+WJufol9p/tQhFTViLCaYvrrjILYEZEYrSg Y8+rDr3YfzQT4RQIanEZh+5zToapSb7ho/9cuwH8PhwEOWnhhpnx2rU/SCR/zRXhwZHZ Fk2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ykqW3897wSAJiZWGqOEo9XwXOXJ+vLB3EHbhUdTdZns=; b=ncHAisn1GD8FRXcX45jLoxB5XkGxCIxv2GID7oISKMYiVG8dGzimaWNZ9jbbavuQYn mIh0m4lzq2QboBVs6D7V5Fs8OalQjdfGi9Ik9a1u8dSl7WyEsBaX9omb3a99SM0pJfHy vzXNl1bNYGXxNfr0Tt83TpTu98xRWUOX0EjK4o8dvW0P+AtcOfMC/tf7J7z8qmzhvKZa 8+6BHnUfEYwF1Qo9aU/E7OGLAQfH0KPbAxlkD4BQzEkGarKdnbRIwx+nzv+oCuZDHRlM stGD55iV4T/PT10O+8lIBsjcn1CDiS5rvY+c2+jPyG965tlIUthoiO9VU5iVcGF17V8E WiOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bfH88cwZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k31-20020a17090a4ca200b0024784735e4esi5644040pjh.115.2023.04.18.05.54.36; Tue, 18 Apr 2023 05:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bfH88cwZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbjDRMyI (ORCPT + 99 others); Tue, 18 Apr 2023 08:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232312AbjDRMx7 (ORCPT ); Tue, 18 Apr 2023 08:53:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBA716F88 for ; Tue, 18 Apr 2023 05:53:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8A63B63437 for ; Tue, 18 Apr 2023 12:53:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A205EC433D2; Tue, 18 Apr 2023 12:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681822437; bh=BjazipYxgTQwo3XKY/INqPSd78c2OmndMvy1BAPInRc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bfH88cwZgeRYKZF03NlzLsLdyR3ew/xBJNYnop8uPCRubrSrqkGZKfsEwEUVa9L1o 7rXpuPrwo4b1XKxKt7SWPfC5XluEoIkx1J1tiHLbLq909nRz6tuBXXvkgJjlXZqsZK uVSzKv2h+UFZwi7uVYz4OWgF9InsRvSfFRFjj70E= Date: Tue, 18 Apr 2023 14:32:16 +0200 From: Greg KH To: Angus Chen Cc: rafael@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] driver core: auxiliary bus: No need to get auxdev->dev again Message-ID: <2023041816-magma-shortly-dfdd@gregkh> References: <20230418122406.1338-1-angus.chen@jaguarmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418122406.1338-1-angus.chen@jaguarmicro.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 18, 2023 at 08:24:06PM +0800, Angus Chen wrote: > Use dev variable directly. > No functional change intended. Not intended, but is it really intended? What does this line mean? > > Signed-off-by: Angus Chen > --- > drivers/base/auxiliary.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/auxiliary.c b/drivers/base/auxiliary.c > index 4d4c2c8d26c4..ca1d044ff738 100644 > --- a/drivers/base/auxiliary.c > +++ b/drivers/base/auxiliary.c > @@ -286,7 +286,7 @@ int auxiliary_device_init(struct auxiliary_device *auxdev) > } > > dev->bus = &auxiliary_bus_type; > - device_initialize(&auxdev->dev); > + device_initialize(dev); While an interesting change, is it needed? Why make it? thanks, greg k-h