Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3087328rwe; Mon, 29 Aug 2022 05:44:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR6yFhI72Vtwg9IxQOCRLDxh0TWVroWg7j4XAo6OflZhPjr+uuheiOpd8NwwEjBFwJ3WQt3/ X-Received: by 2002:a17:902:d50d:b0:173:16a0:c226 with SMTP id b13-20020a170902d50d00b0017316a0c226mr16318002plg.160.1661777065336; Mon, 29 Aug 2022 05:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777065; cv=none; d=google.com; s=arc-20160816; b=D8jtomc7lwFJrnPlJ6akaK4aK3MFfAfrJUAFMtgUTXZbVgOJ/Gwgs9o1somh1tZyB4 a1JnAxNgHqkin4kW4i3rPs3DqHfH33odosbglX+YQaRQzaSIRGcy29FKXAXmhKZ4fVsk 3Y+FJ2LzWT8p3YFy70hpGI6EM+X6AVh1bxBX8W4Z1yHE7ijZSHbMQkh4l9xMFQ/GFzLg d0WrfL/tV1hIAcn4czsuOp2qYwPfBfgtJUiFzMZWaPgnYWJiwHdpKPnazzWVLtEsXXvH iItEi+forZWxUQb5XSQu+Ukz6AV95sL3oDe4lSL10OvgCfQYzEI0jOhDxM9LnkCMfIcm g6Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dq9i892mvDKO0rwREbf6FenovT7hGbfX3rv5JIV+Mc4=; b=RtGI8JGB2LYCRyDwYgR1UEC8e4BT4eBFn0WgElJqKY5E2lfbdguf+ik9PWu8VpKQh3 D93aejugOXPRLJZYrhSUHjULk7gplBUrY/onKBWBL938JExONcci/8Y0r/mExCE9D/Cn mlmHANRy+GrPAP0sq3pQ7aMfGXBWk2Q+4D/xtgFVatQWAeO/8Omckwt/CeYMB8kI0DCe sSRwFyIWRuuOCO0OAlpGpcHLDHZuDa3AUllDQP55jTFXQU6wtOvfcOCRb2/SEyFS4ZU4 juIQG1MtykaYwzG2HWMJvogredkeqp+kl/92BV8JQkgQ8IIWNmCtVxylh+oWUE1av2tR cDGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=hb98i53R; 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=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc1-20020a17090b3b8100b001fd73f8193csi8933205pjb.10.2022.08.29.05.44.14; Mon, 29 Aug 2022 05:44:25 -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=@gnuweeb.org header.s=default header.b=hb98i53R; 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=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbiH2Mb5 (ORCPT + 99 others); Mon, 29 Aug 2022 08:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbiH2Mba (ORCPT ); Mon, 29 Aug 2022 08:31:30 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E7283F1F for ; Mon, 29 Aug 2022 05:15:30 -0700 (PDT) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by gnuweeb.org (Postfix) with ESMTPSA id B1058809CF for ; Mon, 29 Aug 2022 12:14:35 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1661775275; bh=dq9i892mvDKO0rwREbf6FenovT7hGbfX3rv5JIV+Mc4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hb98i53R0IWBkJe8jDFqM7WVowG6yLL6b9RSJXMw9u2HfGlpRZuacbViLMoanZrGf uBCqASRVcWqfvxUp1O5iC0eZo3Ko3w3GK8FUAt2hMe0pYw8igs0lTCOYPuIBoD2MID ScBuQqYZxygIK3mmroiKofaYFKusGdmkIb3X7ml05LdZYW5ZJkJ8+R6fakkxWdAMcQ iKQ8wgs5JbtVwNCf3N+uhtjug5dYFyf0F9u+0KX/1rTguNCSLlZsxwfNUs8+FMbflR xHKH+v+n1280RSfZs4JAC0dhgixPVKcjZTQz3Xdg4fzX1BZaHO70WNT8KVDzWqY9dt rafIr6oprN7wA== Received: by mail-lf1-f47.google.com with SMTP id br21so5093340lfb.0 for ; Mon, 29 Aug 2022 05:14:35 -0700 (PDT) X-Gm-Message-State: ACgBeo2fG8aZAEoz4t5SCTc9KklorvKeZmB9F3LAxRZa0RBBUi92VakU Fmmjbq51I59a7xEl858LbAC5cNE8/QquoXEjJ7XWag== X-Received: by 2002:a05:6512:3501:b0:48a:ef16:2b5d with SMTP id h1-20020a056512350100b0048aef162b5dmr5848742lfs.186.1661775273773; Mon, 29 Aug 2022 05:14:33 -0700 (PDT) MIME-Version: 1.0 References: <20220829105454.266509-1-cui.jinpeng2@zte.com.cn> In-Reply-To: <20220829105454.266509-1-cui.jinpeng2@zte.com.cn> From: Ammar Faizi Date: Mon, 29 Aug 2022 19:14:22 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH linux-next] mlxsw: remove redundant err variable To: cgel.zte@gmail.com Cc: idosch@nvidia.com, petrm@nvidia.com, "David S. Miller" , edumazet@google.com, Jakub Kicinski , pabeni@redhat.com, netdev@vger.kernel.org, Linux Kernel Mailing List , Jinpeng Cui , Zeal Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, Aug 29, 2022 at 5:56 PM wrote: > From: Jinpeng Cui > > Return value from mlxsw_core_bus_device_register() directly > instead of taking this in another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: Jinpeng Cui Reviewed-by: Ammar Faizi