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 48F05C433EF for ; Wed, 24 Nov 2021 20:32:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233195AbhKXUfu (ORCPT ); Wed, 24 Nov 2021 15:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbhKXUft (ORCPT ); Wed, 24 Nov 2021 15:35:49 -0500 Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89193C061574 for ; Wed, 24 Nov 2021 12:32:39 -0800 (PST) Received: by mail-ua1-x92f.google.com with SMTP id r15so7765854uao.3 for ; Wed, 24 Nov 2021 12:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=engleder-embedded-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PEpweZmRyj9Dpdnw8RH+QxQQsZV+p5F4X7npRbeyWBM=; b=obmQBDf5bdnDDwi7sFsbzVW5D9rCnpP6MEFJKRtlEWcKdDe5UtI8eI60+nboF7Xb68 tm/ep3uj/BmHDGjrrFXvGtYhX4Z6FNS2TmflfvKsmD05oZz/ASXdTmyyoWpjoRKmySHL RZKv3wiBXOmE7/CX/tz5aT19ST3rPF/jb1DEfSNS6GeI3RwnGFi9Idq/n7939Ycv0dxV sXlfv11B1NSOxl5onbN8dZ/ApfQDEbWSEED8Hfx3Kwbb6Pvgg6AqM5Bl0toMLvkQbE/V z0lgApOYOSmP/C8YX6XFucu9zrm+BD52hxm3ogBkB5HUOsNKpJUSc3kHCzNgpDtV7b9n ZR4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PEpweZmRyj9Dpdnw8RH+QxQQsZV+p5F4X7npRbeyWBM=; b=qNhZkwEPAmbPHkpRpngW+rw13lsDjOC83ATsdkDiAcnXAfNzS6VOSBRtnVUBOOZy1S gs3vpgGciw1VfN6pF7d+1VNU3iZ0YWhi7Z1SYDLkRmzK/OzR6v3tnbW3sxrsuX0yTsd3 sgbWb52vmPCLR1UeUSs/mFFJL60BqZq4bi5pSTsLMVZby5nvdrwwpEZtnNS1qJZifGoL xGz+/L+WGoKXiwLIF6ewJBPa4jVcv6ViOy5kTun8OHQPopesFjm2YsODAMC/R6KfdO8z lfMcqsEelOWBI87OepQJEMzoXpIV29PDMH525pXISs+9hDnE9NvnzV5kYnER9VefUVvJ kVOA== X-Gm-Message-State: AOAM530DXG8BsuGvLAd/p+FAUOlp6ThcKdwT+7HcocwMO1UIVNudQcX1 zdymxprC520GaxsJA6oxOD4KBCH45R+glKZ07H4fgQ== X-Google-Smtp-Source: ABdhPJyJeMUmzG9JTw+rue1p/xnLkaRSSOEmVApftthWhjtif11uRe6PQNQ4ayz7hacq73ahhW0CIVOk5cK2YZH1tVI= X-Received: by 2002:a67:ef4b:: with SMTP id k11mr1477241vsr.74.1637785958760; Wed, 24 Nov 2021 12:32:38 -0800 (PST) MIME-Version: 1.0 References: <1637721384-70836-1-git-send-email-yang.lee@linux.alibaba.com> <1637721384-70836-2-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1637721384-70836-2-git-send-email-yang.lee@linux.alibaba.com> From: Gerhard Engleder Date: Wed, 24 Nov 2021 21:32:27 +0100 Message-ID: Subject: Re: [PATCH -next 2/2] tsnep: fix platform_no_drv_owner.cocci warning To: Yang Li Cc: David Miller , Jakub Kicinski , netdev , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Remove .owner field if calls are used which set it automatically > > Eliminate the following coccicheck warning: > ./drivers/net/ethernet/engleder/tsnep_main.c:1263:3-8: No need to set > .owner here. The core will do it. > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/net/ethernet/engleder/tsnep_main.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c > index c48e8ea..3d0408e 100644 > --- a/drivers/net/ethernet/engleder/tsnep_main.c > +++ b/drivers/net/ethernet/engleder/tsnep_main.c > @@ -1260,7 +1260,6 @@ static int tsnep_remove(struct platform_device *pdev) > static struct platform_driver tsnep_driver = { > .driver = { > .name = TSNEP, > - .owner = THIS_MODULE, > .of_match_table = of_match_ptr(tsnep_of_match), > }, > .probe = tsnep_probe, > -- > 1.8.3.1 > Reviewed-by: Gerhard Engleder