From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3469BC433EF for ; Fri, 24 Jun 2022 11:11:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbiFXLLF (ORCPT ); Fri, 24 Jun 2022 07:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbiFXLLE (ORCPT ); Fri, 24 Jun 2022 07:11:04 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 106A256C36; Fri, 24 Jun 2022 04:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=lw72Svz/s5Op9EKKkC8WwBc51rXr7wxqnOH5BBs08Js=; b=xjApAEUt+BBKjvM7Rysw0SKL0I x4h/9q+rM8mkRvdYISc27sj7F8/V6KAih90QtHnFV7xUVeC3j8aimJhwbsyxsB+1/I+ehsHyKhT9Z rB9+zsh7N5WnO5utGMaYdHAhTYTmHrNiQp6pFPGlpSmvq0I/iIx2eyJ72knJrV5XCVyc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o4hCv-0083vq-N3; Fri, 24 Jun 2022 13:10:37 +0200 Date: Fri, 24 Jun 2022 13:10:37 +0200 From: Andrew Lunn To: Dan Carpenter Cc: Bryan Whitehead , Raju Lakkaraju , UNGLinuxDriver@microchip.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] net: lan743x: Use correct variable in lan743x_sgmii_config() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Jun 23, 2022 at 04:34:03PM +0300, Dan Carpenter wrote: > There is a copy and paste bug in lan743x_sgmii_config() so it checks > if (ret < 0) instead of if (mii_ctl < 0). > > Fixes: 46b777ad9a8c ("net: lan743x: Add support to SGMII 1G and 2.5G") > Signed-off-by: Dan Carpenter Reviewed-by: Andrew Lunn Andrew