Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3096507rwb; Mon, 19 Sep 2022 15:05:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LQNm75lrAsTWCzczRbZ8Ff/Y4cmFfVosods/c2e6e/dorVFAebtSz11VQQ3BXAtg684ZO X-Received: by 2002:a17:90b:3504:b0:202:7253:9b53 with SMTP id ls4-20020a17090b350400b0020272539b53mr333981pjb.155.1663625149586; Mon, 19 Sep 2022 15:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663625149; cv=none; d=google.com; s=arc-20160816; b=l/5p3bqKk+KM5cxTbqhG0IkGUDTg31leROkl9J4Vj0k/R5Yd+B1fandG6Lpos0/oYK +X5ni3gzgScOg30oQQk3knB/qZv/I8gzJa9GET97+3jaSlCZhmHTe+p0Hoe9nBwK+5sE 75MLGlZ8WwHurkC/d9wxvPyZOKfzm85wBV527nvbop/iYU1HiPkr5PHmshcpDbAcArTG 6jWPLR+NFJE3Px/UyxUivbpJha13XvEHqPIdZWElYjR7Tl/mqn8tDQCOdoRfoW9DlcyH WwRYN5HKFA37BQkeBrDTaxvSG2zJRjbZQbjtYqv0PsgNITrp0mN0CoLEaLzsHbWDbkkc jceg== 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:subject:cc:to:from:date :dkim-signature; bh=TesXcIGv982KDJaDE0KN7LzI7boflf37We4QUJmF9DY=; b=XaQJaMHqOHj7Rb+j23XIxtdgCRAruoc6QGhP7anvhtUz63glU6RC1N9OHxK0ZkhSmq UJJdXuAPPKdoA6LTRK8RjnKKbaYWtlgbXABuhxwojUd0StnegNs46O9x5mAVtqLtWb4x CLI4foxiq68kwcVdb5nsclx4OhQaVSZTvhEB1mK+P96fYFXtAYrBGfiwGL9qoWXF7jN1 3PxWMHFMswBkyr10uTUVfl3DFVKzvusG5shcdLgHvf2YrC2d6Ks1PvHexZJ2Sg61yhEC DIf2EJGjw7b0P3OKUklDydaZcw63+tY6k++9QMeeC5nwoslxoF4ENlAtMHglMkXm64Ok 9nww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t5j2gFeo; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n91-20020a17090a5ae400b002030d5ada2csi11970558pji.137.2022.09.19.15.05.37; Mon, 19 Sep 2022 15:05:49 -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=@kernel.org header.s=k20201202 header.b=t5j2gFeo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbiISVuH (ORCPT + 99 others); Mon, 19 Sep 2022 17:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiISVuG (ORCPT ); Mon, 19 Sep 2022 17:50:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C24B3E763; Mon, 19 Sep 2022 14:50:05 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1D3DEB80C9A; Mon, 19 Sep 2022 21:50:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24260C433C1; Mon, 19 Sep 2022 21:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663624202; bh=YjhFCbjQzUSrXxdUwrttST24fO5cqS2ALKtCxlBllvI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=t5j2gFeoaY/CEGtEYqIX8DZgUg3y5A+A6NOuW45gNegOGwHZ0czoelxNn7OlKS4C+ 6jh/KsRMCTn2BCTiH0pheLLX+Ax/NtVwGdeQHqCAcPEdeo8c9taLz8qLwrhkEN5aO7 vrC7Z0bp3NuxWD1m8cilkl/toG4cNxFbK8I3VhdkGM6+jDV3T9cUvj9YEkEu4hpLQk 3SRhHdlHdlpbjaWGQgBpzi7oQyfTbIBpiMcA3Bc1MIkEpGIk3aynxFxdlOYIfBezLS CynOoCh0p+7ZdQE55m6QHrQkukqrFVlff4PmV17TQNKKtWWHAmrK2aJ/JnGDpSxir9 qzhdXi3nS7xKg== Date: Mon, 19 Sep 2022 14:50:01 -0700 From: Jakub Kicinski To: cgel.zte@gmail.com Cc: idosch@nvidia.com, petrm@nvidia.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xu Panda , Zeal Robot Subject: Re: [PATCH linux-next] mlxsw: core: remove the unneeded result variable Message-ID: <20220919145001.4aa47af1@kernel.org> In-Reply-To: <20220912072933.16994-1-xu.panda@zte.com.cn> References: <20220912072933.16994-1-xu.panda@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, 12 Sep 2022 07:29:34 +0000 cgel.zte@gmail.com wrote: > From: Xu Panda > > Return the value mlxsw_core_bus_device_register() directly instead of > storing it in another redundant variable. This patch does not apply cleanly to net-next, please rebase.