Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp813137ybz; Sat, 25 Apr 2020 04:58:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKQXfmeZk5CzM6HVeWx/PVFm/EPgp1BIczysfzJ5MO/Hqaoz1vHQCqO3ZR4Z5jJ9tw5fDlt X-Received: by 2002:aa7:c401:: with SMTP id j1mr11060090edq.31.1587815884830; Sat, 25 Apr 2020 04:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587815884; cv=none; d=google.com; s=arc-20160816; b=NC4flC2uB5nPOvXRFpWdEAlw/6MaETUeRDFpw6p6gGFcPBr14HEBcF80wUyfPKCGzD Qk5F0n95pxP4HhL2IQoPMbDPR5G4I5iNfTXvfyiVwPuAiatTwICaQL/QJLxOS06cgUVm OZuDehKutzEQjDjR04cqDix5U2WN3wLp27y4VXexL+j58QhF3FDS+PXPmB4HjyV8cpmw NzjJ+3/SEgKWaItP+Z7DaPjP1sGBwlDWW2URb58pBqtN9JgkvzPBwVOxRjpbCyT5BJs9 jFGtz0PtI6oM9kt+4epys8jPX5L+oml3E4qnBnbI/Ta/73TKeLJ4WWGCnx0gu/LukDxY UVyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=blyNpwJH0tDYVCiSTx7/2yaYq9p1CculusRqY7fpsWI=; b=NJXbTk/T/Y+uf3pijt+HpbHoUbqVpxnG7x80YttmDg0swbRqzXg7yxDQas3wX3YPDa 59dmKPMdTx+tG91iMZQ7f3JUFXWHXBKRYor4q8IPEnz4iQ6i3gzm/qReO1v2chf4KE2P Fdbrx4lzUL4gdYoM1BJ50qE58DyyQk+LkLiXawW4P//qTOxqKFoUyGZQV9EZTerEOQgU wEKao7X/ds29yRPca5ykB28m9pCy0n2432wsVh+sgTj4lTekBQHSZ3gc+I/jLH6369rE 2NdkXFMH4OQnLN7thVClTQ7/u4kTkdeLuLDj9pV0K8YGrQ3Nm9ttvHEzZxB7uu3S2IGE Ca3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WL1JbucF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn10si6097661ejc.357.2020.04.25.04.57.41; Sat, 25 Apr 2020 04:58:04 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=WL1JbucF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbgDYL4X (ORCPT + 99 others); Sat, 25 Apr 2020 07:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgDYL4W (ORCPT ); Sat, 25 Apr 2020 07:56:22 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67544C09B04B; Sat, 25 Apr 2020 04:56:22 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id h69so5970151pgc.8; Sat, 25 Apr 2020 04:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=blyNpwJH0tDYVCiSTx7/2yaYq9p1CculusRqY7fpsWI=; b=WL1JbucFohVFnUcZjY29S7QZa5qDzem7Bft9YbbmHjPYi5GgJbiefnJfxBNDrfg5L3 z9rDUAtppZpTvPGVECI8X8RyWJlNPlqbwa2U7SDgYvbjXEdkmh6+ZbOSH89Srz8xQtsI ZFljFfHIgpnahGZUz+kP7sZe8SqXfk5G0yWV6avx2e8MgtnKVG//a4oSuC1rRtlvJsMP Xpcl3QZDih5dTBWpWDAdl647mTry53MHeKTGoh99U5kuIp5jdD1e5wmU/1DiUt4uI9ec MvaYeVJ5ZKv30TxP4k1bHfnISq+R/+u3SWl3bM02VPbWi89axJTJ8c3Djkn12dE+KYh0 Ks+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=blyNpwJH0tDYVCiSTx7/2yaYq9p1CculusRqY7fpsWI=; b=JCyXFD8d1Qc+DRqeTS3bGNqmPflabzo3dY1HR0wm9eFYDrACs4wUi2uzIvkvIg3AZV sfgONM62TF6/FAO98EUEkRSOSgF/YLqT8qxMZIsmxuz2obnDCjyhdePpT7Hqm3myQGqo gTk8eKJrE3TNow2KcmYgpjurBNtyY6bLjYZ2oJVGnLZrixtLhq97ZNJFuyS9G8uPdq4n t275boFVTvcm22VrsZQ1PZ+4H7fRTlFJt9kkbC82W2WnuxhBVZqkaydn//pSF4GdX/3O oga2cGWz9lUE9YH8YO5MUv297UjYG+XOU36ODPqCzrCl/tMKpFkaC8kzYn8/oRYFCtzG c0og== X-Gm-Message-State: AGi0PuYemkXjFF2L7AkuFnzpBzw3AMurBPKhr2TVpB3hpTiNsqTZo1ce wQZ/rTkn8G7LaYTdhUpoIp8= X-Received: by 2002:a63:65c1:: with SMTP id z184mr14356487pgb.316.1587815781919; Sat, 25 Apr 2020 04:56:21 -0700 (PDT) Received: from localhost ([176.122.158.64]) by smtp.gmail.com with ESMTPSA id t11sm8061247pfl.122.2020.04.25.04.56.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Apr 2020 04:56:21 -0700 (PDT) From: Dejin Zheng To: davem@davemloft.net, tglx@linutronix.de, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Dejin Zheng Subject: [PATCH net-next v1] ethernet: ks8842: delete unnecessary goto label Date: Sat, 25 Apr 2020 19:56:12 +0800 Message-Id: <20200425115612.17171-1-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org the label of err_register is not necessary, so delete it to simplify code. Signed-off-by: Dejin Zheng --- drivers/net/ethernet/micrel/ks8842.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index f3f6dfe3eddc..213ca33a9967 100644 --- a/drivers/net/ethernet/micrel/ks8842.c +++ b/drivers/net/ethernet/micrel/ks8842.c @@ -1204,7 +1204,7 @@ static int ks8842_probe(struct platform_device *pdev) strcpy(netdev->name, "eth%d"); err = register_netdev(netdev); if (err) - goto err_register; + goto err_get_irq; platform_set_drvdata(pdev, netdev); @@ -1213,7 +1213,6 @@ static int ks8842_probe(struct platform_device *pdev) return 0; -err_register: err_get_irq: iounmap(adapter->hw_addr); err_ioremap: -- 2.25.0