Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2436523pxb; Sun, 15 Nov 2020 04:50:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx46C9m9cdA4Z9QJwCg9Mt0S4uFnHTsm9fC9GLymoX/Up0u12v/P1mWLrjlkEyUdrRcoEI9 X-Received: by 2002:aa7:cdd3:: with SMTP id h19mr11294572edw.330.1605444638912; Sun, 15 Nov 2020 04:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605444638; cv=none; d=google.com; s=arc-20160816; b=elZeLwx98TBsW9HNCOFZnQ8UMkmZ0lsk9+aCvWY1Xrqk51PrFOE7/g27ATTTEpEkKN QCDxlquatr+G+37GElVPfwIJmlYDEtk4+SEjEawbXUuq+3BNtgQoafMsi17SzOV0AEMV w3bKsXR+aRCqTtNqC+VIFC5mhOy3C9TWfBxt54Rl6WlgNmdjjq+9gwE3pxo18dum/kn6 r6T74B92dsDVIIDOo5yNN1OoI/tEpYhq+ZVRsABdfQeQO3SpJv/gpLiYnQohlAm8gqBb vVW5DFMhUwAMQq8q/4GbyolNQ/JNl5zJR3i469hR0o5kfUTVKt+uigI+Fh7XL7esAbLI KcZA== 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=8KfXQSujd5SJCHsjulK8qs0IJRh5a64PQ15z+sM5VBs=; b=RJvYP41a0gZqdSHAUJoQPLHurMUq/RyrhmpvMm2LqHQbiesLmVHNNrHHzDdpiqmFFW 30RiFT6UdCWsTFr1P9UG5Oxjl0ysQrKbymG37R1CpNQ8ah2wzIcZNliSvCTyP/VjdKOT MKGONQTady0Ynq1T+NhPNA+ZKhJ8p1/V8iWNppq18tw5ofhrUP31T8nga3CV2mazrHCj B+OhqxFejWJU1RaC9VS/1wYMBhF7xeC3mm99LA/kABvdbpdBd4cOA1pTk0Xn6b/epk5M P+QNwDLjKlfrAMfkBK2xwLtWWnTBiJDLLyxZA3Wd/B4Wz0dnZClJ6+/BdFUWgmH7H8Yx X+Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yTYhmZ79; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si9656791ejj.52.2020.11.15.04.50.00; Sun, 15 Nov 2020 04:50:38 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=yTYhmZ79; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726823AbgKOJ3d (ORCPT + 99 others); Sun, 15 Nov 2020 04:29:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:39562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbgKOJ31 (ORCPT ); Sun, 15 Nov 2020 04:29:27 -0500 Received: from localhost (thunderhill.nvidia.com [216.228.112.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71E5E22450; Sun, 15 Nov 2020 09:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605432566; bh=S+l7zjOVIux2ji8vYMF5u+4XPB+/PGFifq/NnLov1ds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yTYhmZ79Zx56I4zsC4G5mhESOGtLIXtwBgZYuQVmvj3zQF5weYrUnpmjKdmQ8AGKU nDJhvWEM17XiDnVztyAvy3bcuymUoVKdXoExzd/1OisMMb+B5IwW0D+JTy+ElgpBHz u0RPKppKmu9NgfltDUQrOFVQ/uibM4lqmZ6SDhCc= Date: Sun, 15 Nov 2020 11:29:22 +0200 From: Leon Romanovsky To: Wang ShaoBo Cc: jgg@ziepe.ca, dennis.dalessandro@cornelisnetworks.com, mike.marciniszyn@cornelisnetworks.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, huawei.libin@huawei.com, cj.chengjian@huawei.com Subject: Re: [PATCH] IB/hfi1: Fix error return code in hfi1_init_dd() Message-ID: <20201115092922.GB47002@unreal> References: <20201115082548.35793-1-bobo.shaobowang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201115082548.35793-1-bobo.shaobowang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2020 at 04:25:48PM +0800, Wang ShaoBo wrote: > Fix to return the error code from hfi1_netdev_alloc() instaed of 0 > in hfi1_init_dd(), as done elsewhere in this function. > > Fixes: 4730f4a6c6b2 ("IB/hfi1: Activate the dummy netdev") > Signed-off-by: Wang ShaoBo > --- > drivers/infiniband/hw/hfi1/chip.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) It was already handled, thanks https://lore.kernel.org/lkml/1605249747-17942-1-git-send-email-zhangchangzhong@huawei.com