Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6427859rwb; Wed, 18 Jan 2023 05:11:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXvm/TNwSIU1jmv7PF74fYPEAVzYsvGnZ3NRgjxg//ZgywFdxZ1iI4xYKLhZkTaSIRxSF7+p X-Received: by 2002:a17:906:c283:b0:86a:833d:e7d8 with SMTP id r3-20020a170906c28300b0086a833de7d8mr6990459ejz.17.1674047485617; Wed, 18 Jan 2023 05:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674047485; cv=none; d=google.com; s=arc-20160816; b=fBsSSoCvJodT+A5eXjkAKh2yb5sStpzsbghRlcNjt6Mlyp5mSbnpi/M7+Re5IgwSq/ 3oQbhK2ftUP1EbKV8zp45yDqBLPhXvKNX4D9yI/Yo3kXBTD4B+GVCpToAD+YjmXJGJe9 HNrnPwtjzkqiNpD5ij7yVnXs2z06rPLTKutlJiXRpbrjH+dJF3Wt2r15zcumJhoZLwxl L2yodXHtGzzW9S63s18QTT57TE4ELTDAd5oAF3r6GQYxl+GNyyaf0yLZDxHYqprIYqfe H2JHcY35tBfD/ctzNlFHbBYVxR4+1vPaGX/F21+JfwxRmMEAwc9DKWUUReRlxLDICkq6 ZUOA== 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=n9Yh0i7la4VrCjHR5W5yl931a3i5vJ/XRP653z8KE/w=; b=zuh/esyMWlBtj7HeUxhCok0N036J0qUalNyeSAKpFIKlC+226XCpKlV+TCVwv9DxtN XA+WOTkdyPqEF1ufrDLRz5/aybtyTS3G9qDPaG0bfuem3ek2RKl5UjpI2qwWMnlCN9sC ho9yF3lgeVeLdf7srqRDgZ43SxLbSupp8t9osqOppu77lhyzAU3TCq1R0aEdNmv/ZlC4 abdCOr/Ol87RNJornIEpm0VkmjBAQnkx9r+EFqDygB4QsshUFYyxvMHYwt7qhRg9WkDG NHYWdliSZgtE7vwxvG04TXRm0qfF7o5/GTVYCe5Y0UYbEFgfR7361wwqyCtdyS/WuA8T Z6CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAmp3jig; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm3-20020a170907948300b007da4fe085d4si6129316ejc.694.2023.01.18.05.11.14; Wed, 18 Jan 2023 05:11:25 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=MAmp3jig; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbjARMLk (ORCPT + 45 others); Wed, 18 Jan 2023 07:11:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjARMKI (ORCPT ); Wed, 18 Jan 2023 07:10:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D97C4689; Wed, 18 Jan 2023 03:30:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 030FBB81C54; Wed, 18 Jan 2023 11:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACCC4C433D2; Wed, 18 Jan 2023 11:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674041413; bh=wYh26QEkOVgnC4Jwvggs/1VX+pgdOvwPisiu0/vGJY4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MAmp3jigIdgpYoymR5GLeOKBDqILizSsosDi/KzYw/H31lh0VLIPZkbYthLUikjZ7 5WFS0KilKZaUm0M5yS11VHCCw6c+KB1yd6caqDBRo3pjKHAlCdBaVzgv9jj0Enadfb PPSCiLA6CQQI+aBd8GdKD3w8O/yjtgrUjwuuif0zSHGhFOP7rA0WHDTZ6r1jhDyI6n /YTfa8F42W8qCYUYBmJfgA7WjERHd5fIzP+QeKxJ0TBMM2winbxgkMTzxfwxGAhDUj SIA1gSM4L3Jr2NlPL5l2FaIfDrBtb68LnqEWflKle+EtLsHuLk0J2TRiLXVByGZZJV 9ufutYYnJhhQA== Date: Wed, 18 Jan 2023 13:30:06 +0200 From: Leon Romanovsky To: Siddharth Vadapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux@armlinux.org.uk, pabeni@redhat.com, rogerq@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, srk@ti.com Subject: Re: [PATCH net-next v3 1/2] net: ethernet: ti: am65-cpsw: Delete unreachable error handling code Message-ID: References: <20230118095439.114222-1-s-vadapalli@ti.com> <20230118095439.114222-2-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118095439.114222-2-s-vadapalli@ti.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Wed, Jan 18, 2023 at 03:24:38PM +0530, Siddharth Vadapalli wrote: > The am65_cpts_create() function returns -EOPNOTSUPP only when the config > "CONFIG_TI_K3_AM65_CPTS" is disabled. Also, in the am65_cpsw_init_cpts() > function, am65_cpts_create() can only be invoked if the config > "CONFIG_TI_K3_AM65_CPTS" is enabled. Thus, the error handling code for the > case in which the return value of am65_cpts_create() is -EOPNOTSUPP, is > unreachable. Hence delete it. > > Reported-by: Leon Romanovsky > Signed-off-by: Siddharth Vadapalli > --- > drivers/net/ethernet/ti/am65-cpsw-nuss.c | 5 ----- > 1 file changed, 5 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky