Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp815769pxb; Thu, 12 Nov 2020 18:02:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc57iw1uxFww1OhbvVG8VLyyT5GmyrNSPs7b7qbBzN+tha4PnqwcysXQvjIH15PEB4Hkxc X-Received: by 2002:a17:906:9455:: with SMTP id z21mr2245091ejx.160.1605232965290; Thu, 12 Nov 2020 18:02:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605232965; cv=none; d=google.com; s=arc-20160816; b=VqMVpIvfN74sl9dW2rml6XgeMZ4nLEcn42nNnL0oU+RkM2FIDAL9I/6BIib0Y47ZWU TUeX+wB95PMJKoeuRIBBXfVbLbrqqt0WWj/DXiM1tnR+zxEtIt2LnjOZ0/CPDo2Igy8L 4JtsStpwlr6ZYyloE9tnUkW8WV3ex2STJ8Fc4TVK02T0+GE7VSLL1JXEpen8DMvswLLJ fyctCxR7dKfOPuqGErr20dAUiLmcS1mDdqWC/9AmfnDOufuyRBj2kTgi9Ne3x/92seIz H1LMMVSwxtEZ/2sj8afHSkH/Fo+zlkzEAU4q3dZbto7hxuc3ILBJI5vlAd2WnG8zZwWb KgYg== 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=Xh2oSAndVqfmiLZSqjm2hHGTAyhDWF6Seo8lk9q5F0I=; b=V8XKe1dPgRunUP7lhr23aaQBHJyMb5i+XlZ49OWeapHNXhNvgftkXBgGpPLVOy7QgD fsDH3XzRHJioxZmlInw6ohb/FxjtcHBSIIZ24HdhPtSclzFUJI9IBoQoXYdtlFVkyM3z W/exLgjcTTyiM8wjRoHI5X/rBbbAFPFb5OPgHcqDedCJUPeDS+n0Q8FijpHkL2MW7Uul IVCWrmLqC77d9tx7aMrI0ySCUfyC0zlA8tIiz0/5RZ/VLQzLyrILIo4BZz5+4NKWyCmj OhFr/cu3MEzVdjSI+WLpTtkAtvVUoT4Vstd94V8qW617MDVy7d0eGK6IYmB+aSVNaVgd W8GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XA0+ulh6; 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 r9si5196249edy.536.2020.11.12.18.02.21; Thu, 12 Nov 2020 18:02:45 -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=XA0+ulh6; 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 S1726187AbgKMCAo (ORCPT + 99 others); Thu, 12 Nov 2020 21:00:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:48650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgKMCAn (ORCPT ); Thu, 12 Nov 2020 21:00:43 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (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 A191720791; Fri, 13 Nov 2020 02:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605232843; bh=YIVUXvugC/QL7FJcexfRD4j0yx08NvVB+thv/g8e9Hk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XA0+ulh6yK0/DK1hev15ITWu5k4w9sKcZphDrWLa11cKFfHL83A+VK7HUclVfs2qb to7a9jNiwJQ3EqNr3C8r/bA8wEpJlGbCS1xlsdrMEBhcABi2+fABH3FpSJsx6mU9/x Gs0WOhiv1KDqHQFvnuDpFgyj4tZwQm4sOKKwQtM0= Date: Thu, 12 Nov 2020 18:00:41 -0800 From: Jakub Kicinski To: Bartosz Golaszewski Cc: Zhang Changzhong , nbd@nbd.name, John Crispin , Sean Wang , Mark Lee , "David S . Miller" , Matthias Brugger , netdev , LKML Subject: Re: [PATCH net] net: ethernet: mtk-star-emac: fix error return code in mtk_star_enable() Message-ID: <20201112180041.1f1f96b9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <1605180879-2573-1-git-send-email-zhangchangzhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Nov 2020 12:41:26 +0100 Bartosz Golaszewski wrote: > On Thu, Nov 12, 2020 at 12:33 PM Zhang Changzhong > wrote: > > > > Fix to return a negative error code from the error handling > > case instead of 0, as done elsewhere in this function. > > > > Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") > > Reported-by: Hulk Robot > > Signed-off-by: Zhang Changzhong > > Acked-by: Bartosz Golaszewski Applied, thanks!