Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1872509ybt; Sun, 21 Jun 2020 02:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweA0jASK0iDd9pR7+D6CfQkGBttt3pG0pgyaCyUdBGppW2GgQ+bZFZbzzgqk0UCj8NqMGt X-Received: by 2002:a17:906:af4d:: with SMTP id ly13mr10619811ejb.250.1592730045803; Sun, 21 Jun 2020 02:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592730045; cv=none; d=google.com; s=arc-20160816; b=jnDfmXFqwsn2O0js1n4qwXp/HPfFY81uoI+Zn40XPmH52ty7GaEOSjKO2mjpEODwsz MWXNPEM/SVgXJKAghx4024l2ZIp5xSATRY2aVkpoDcz3psxkYGOVW18+/PsldrydJ24u 6rKiTTgSCnVdHxVNQPDbOMG9fnZ0lTWBECoxEh7MUZLUQ2apwdIZl9Ucx4eklTTCN8TM tfKctzvB7MWO6pdtVnZahWIAvOxiZR7RPkNw13NJCSKCWNMq4ed4mvwwrZ4z+bziuql6 lV+1At4U+rhpFzI1yvSAwNkeeoi0miwaZQ0Qtzzmd+MaXzPfe6UecYgSl12jQMRf+IYD Qoig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3K9iano7tc8WbAJhJfY4t6jSmakbtH+Y8CHBQa0fNnw=; b=RK9GMK8DiKxvrvLoU3xrQqXfDVpKDTHy9eQVsH82Fwc2VpeBzpClu2BpWh70yfRLCw AKc/6Wv1i6JRxKPDHrCJSje+/az68XaP9bk3mc7UfLV/JuGoUPa//eqEjQH32DnJAIM5 WY6lvvl/ZQpiPwplrvi+0JK1b1D8CZYRozEyF5l0peevSgWNg+d1nqi5HRRieqyxvr5H +/MtK3SQ8K1Ewch6r0u74exHdj8pEbAqwRm4e8WPb06lfbbQmZ/XZtkGCZ6DCe3tT1CB kVweBDRQPtIIvCM5we3Be7vXdUnzzy2kh5KUqzMsJggkNzcNHwgPNPTRiikvvC/WDmBL ReRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=l4HUFNhb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si7050576eds.397.2020.06.21.02.00.19; Sun, 21 Jun 2020 02:00:45 -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=@messagingengine.com header.s=fm3 header.b=l4HUFNhb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729588AbgFUI6B (ORCPT + 99 others); Sun, 21 Jun 2020 04:58:01 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:42979 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbgFUI6B (ORCPT ); Sun, 21 Jun 2020 04:58:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id D01DC580558; Sun, 21 Jun 2020 04:57:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 21 Jun 2020 04:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3K9ian o7tc8WbAJhJfY4t6jSmakbtH+Y8CHBQa0fNnw=; b=l4HUFNhb1v2HRiDTe23lB5 0XOyRciYS4gcBXy7LcMABmWTuWyJEbcAEGYWul8+/dyW4K28jxPE1klJ8dIfjXEm 5TaJ26ZtR73LbnveBHA2jNvQdNS1vo9qAfqnt0RNDQ3FWcTHAc+H5phcjtW55V21 oJ/ViCwKvaIqQEbEHYV8r4frGkiL7+MD0SGXpzEsXpMWCmshEOfLAVwDFH0XM/3c wVjJTebZJ6QsTWsMVlDAjGqGTerwa1VhYxJBaYH4o1i7/m5GRD5aHyGPVbu2tT8f B4GOaY7HhsKeForq9SRzvSu3heR+42fEwbAqu/0qDe7BzjEoErXGgGcOesnluIag == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudektddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpedtffekkeefudffveegueejffejhfetgfeuuefgvedtieehudeuueekhfduheel teenucfkphepuddtledrieejrdekrdduvdelnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from localhost (bzq-109-67-8-129.red.bezeqint.net [109.67.8.129]) by mail.messagingengine.com (Postfix) with ESMTPA id EC1F73066CFF; Sun, 21 Jun 2020 04:57:57 -0400 (EDT) Date: Sun, 21 Jun 2020 11:57:55 +0300 From: Ido Schimmel To: Vadym Kochan Cc: "David S. Miller" , Jakub Kicinski , Jiri Pirko , Ido Schimmel , Andrew Lunn , Oleksandr Mazur , Serhiy Boiko , Serhiy Pshyk , Volodymyr Mytnyk , Taras Chornyi , Andrii Savka , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Mickey Rachamim Subject: Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices Message-ID: <20200621085755.GA477536@splinter> References: <20200528151245.7592-1-vadym.kochan@plvision.eu> <20200528151245.7592-2-vadym.kochan@plvision.eu> <20200530154801.GB1624759@splinter> <20200601105013.GB25323@plvision.eu> <20200603092358.GA1841966@splinter> <20200620125639.GA6911@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200620125639.GA6911@plvision.eu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 20, 2020 at 03:56:39PM +0300, Vadym Kochan wrote: > But it will look same as prestera_destroy_ports(), do you think > this is not a problem to have a same logic doubled ? No, error paths of init() usually share logic with fini(). The benefits of being consistent, always having init() followed by fini() and making sure they are symmetric, out-weigh the benefit of saving a few lines of code.