Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1130432ybg; Mon, 27 Jul 2020 08:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx597KzjAL2bf1RbPysOd80P/T/Fl3MNvvjhe8bWEJlJYHxySB3XbGqvMi1Eou42tE6WlRf X-Received: by 2002:a17:906:9717:: with SMTP id k23mr6675137ejx.493.1595864241152; Mon, 27 Jul 2020 08:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595864241; cv=none; d=google.com; s=arc-20160816; b=Pdcx+OtA5vLcfiEHdVQZ6qvpUuVwmJTInEk3u4UOPkida8wOvSnhtFU5gnZKclw6k4 djCBY7tEoN5ntZRO96hhGavn8H4TAx9rT+KCLILaBY3YsZ+VtHhAxeCHa4uZ4RrtCEzW 8ffvKwMyDezROTxzr0iHtoG+G21rJmL/x72xTCJuJVtfUpAhhD77Bl+ioD/aD/daGrPl 4EXHiAdGN1e36Qo1H7Q2nqIlAdzpoh9HipHpRNOFTKE5vJo9M05++HBk9+rsxRDIiM6n 15o60raZvYFLW6t5sVhQAOigJQxrRTf0KBaEwVwL7NY2CisATj67d6qLvA3hbSQ+m2Mf ymdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pcY0A56aPSXRoinZe6gcqtnoZNboGx9+nJBDiq4Vbx4=; b=rMFuypveXpQwS5R/7fjx5nDEZx0Lm72HqQsBOHoquUP5hbPDPss8IxDLQaC104FSER A47xCiUeJ5RrXtprh2gOp5EDE5iJCLdVPQ866Kz8twi4vFPsB51IlyTvNW/QV4xI1Wzh 9ydCoRMdVAtPvsIiCLqPrUxxppNwYa+9ItH1ytsJRuA6ioGmacB+jQ71ZpDIjkXfmVHV OZ7SkutNSblGoPmp3x2q0WHu2Ln5Gt+lm7uT0MCB45z+2zeuIUVCv5b/jFOpxAo3RBrQ LpQRt8ILYGdhtgBbPvR3oTO75xPuV0HNz98Hx46KVrfRr5oGfl0+MPmySa+wIvqr03bv oj8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oX9WXK5+; 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 i20si4332947edj.383.2020.07.27.08.36.58; Mon, 27 Jul 2020 08:37:21 -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=oX9WXK5+; 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 S1730447AbgG0PeB (ORCPT + 99 others); Mon, 27 Jul 2020 11:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbgG0PeA (ORCPT ); Mon, 27 Jul 2020 11:34:00 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E999C061794; Mon, 27 Jul 2020 08:34:00 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id k71so9617485pje.0; Mon, 27 Jul 2020 08:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pcY0A56aPSXRoinZe6gcqtnoZNboGx9+nJBDiq4Vbx4=; b=oX9WXK5+2EvvTcwgfnjjqmWJEGAJFSDR+6Y+PALc3mZWl6t1xf36+ZokY1jfxLY7Qx vTu998n7s3xDkI9n/LSZS0dMqffhKSJKb0hFh7pcle5RV5Std2H1RZ0r4v04vaJrnhzu BRE3xUNHmeKVI2lsgqw+dSq9Rsmm3SHV+jCO3Kya+2LiTdlGvTzXMwtFZmNIgY420cJ3 e3W1GcEpIkCg0b79rAC+Ylq0CRIBh/T6VaY5/tg2M4JsO55k3cZKtH4euSXLnN6zoNOB zG5Xhio5Ex4GeOLHwdwafmRKUSc4Ef25ch/lHKy5opAkEtNpwmCoowZSMZkkc/9Da2W5 cG2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pcY0A56aPSXRoinZe6gcqtnoZNboGx9+nJBDiq4Vbx4=; b=jEz4G8DnIuFgy+X+sdCt3j7ThdhloA1yBGB/BNXvSXGsi4WA1xSxlK4J2qz870pXc2 jbw8XllfRDeTXpGLIxVt+jyJGQ2ou3B9q8Vx46dUuK8YBAWEKlIAltieK/WCXpeapIt5 BYMmq/3HSnQM04AlRsRcrPOD4u65D1icwmQPMs1rSkVdbftbQrNhyA0cvNvz21hcnZNm PpWl/Af29FTbtmos0ddC1514Ld7n3wzbvWvistdqOwTMV6tIjVIH18MOtVr5Agwqd4Kt UhSgYEh59Vzy/P/KcXpSg7JWgOXCufR5Ak1znH5ETgpwXXACbXC5PNxOwmbmgYfLYryF Oqjw== X-Gm-Message-State: AOAM531HyZZUfuPuXn4slX2uC92CkJdXI51RkFTLP7HpaQtE9pT9TRaq LY/cNyg7Ad0sKQSpLIsMS53cj/9+1PZHc0HNDtU= X-Received: by 2002:a17:90a:a393:: with SMTP id x19mr17086062pjp.228.1595864040131; Mon, 27 Jul 2020 08:34:00 -0700 (PDT) MIME-Version: 1.0 References: <20200727122242.32337-1-vadym.kochan@plvision.eu> <20200727122242.32337-3-vadym.kochan@plvision.eu> <20200727141152.GM2216@nanopsycho> In-Reply-To: <20200727141152.GM2216@nanopsycho> From: Andy Shevchenko Date: Mon, 27 Jul 2020 18:33:45 +0300 Message-ID: Subject: Re: [net-next v4 2/6] net: marvell: prestera: Add PCI interface support To: Jiri Pirko Cc: Vadym Kochan , "David S. Miller" , Jakub Kicinski , Jiri Pirko , Ido Schimmel , Andrew Lunn , Oleksandr Mazur , Serhiy Boiko , Serhiy Pshyk , Volodymyr Mytnyk , Taras Chornyi , Andrii Savka , netdev , Linux Kernel Mailing List , Mickey Rachamim Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 5:11 PM Jiri Pirko wrote: > Mon, Jul 27, 2020 at 03:29:17PM CEST, andy.shevchenko@gmail.com wrote: > >On Mon, Jul 27, 2020 at 3:23 PM Vadym Kochan wrote: ... > >> +err_prestera_dev_register: > >> + free_irq(pci_irq_vector(pdev, 0), fw); > >> +err_request_irq: > >> + pci_free_irq_vectors(pdev); > >> +err_irq_alloc: > >> + destroy_workqueue(fw->wq); > >> +err_wq_alloc: > >> + prestera_fw_uninit(fw); > > > >> +err_prestera_fw_init: > >> +err_pci_dev_alloc: > >> +err_dma_mask: > > > >All three are useless. > > This is okay. It is symmetrical with init. err_what_you_init. It is all > over the place. We use multi-point return and these are inconsistent with the approach. They simple LOCs without value. -- With Best Regards, Andy Shevchenko