Message ID | 20230319050840.377727-1-sensor1010@163.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp600844wrt; Sat, 18 Mar 2023 23:07:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+B3RbHxrNsOwZDYYmGEOf+n00jCprsswTG0I1WWsfVsnxI2LRRRkVSGAtl+RCwyOm806/e X-Received: by 2002:a17:90b:4b52:b0:234:656d:235a with SMTP id mi18-20020a17090b4b5200b00234656d235amr13828601pjb.43.1679206078066; Sat, 18 Mar 2023 23:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679206078; cv=none; d=google.com; s=arc-20160816; b=P3NP8ui46jkz8Q3hjURuoyDLMa9eyG2VBY5LHjf4M7d46LlFaHl0qlgLY3cxHfJKwi EtqgGtk4QZ9hkIPmsCc7XJFYqKF8sw8phSYEkQG84+CzwdUNyG4lED9+0D3+eE/VIVC4 Q45GkuneRNoICZ0MuljqfYgFpXGwn+nxRwPjeZi+lq/bbVn+GMbM2x5XPbtYLY1lTcV+ +Jn4MHj6vGq2lBpawix8TG7QNh5omgg55I4zFFLfAwvZhdeDz2g2fjicplnFyLWpIAkw UUsYw4TzfWNbvXLM/10Lxh8zPIi0G653MYtvWl6YCNj+YmnF+TONLK+Yr+0yU+kEcpLZ Gewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EV8Coy6UpeuOXMoDGXrNwPbs5KH0GOFsMnyQWDyA7a0=; b=Lh4jbnk924AKhkZBIN3i1Z6dbJ1inLwo6pCxbtPcVgu4b8Z4jaWTL2Rt6yIIQGtb18 rW6Bw7Ixdw3vUcTqzhP8FRyxfTIId6xWX+BUj96NvFvtxRe76mVviTSB7knfIHwUZCab 1ybywlLWXbX8k7frMbyh/o81Mle4/1jrPz92NuOjJtXyuAmlV0k4hiiKFZlkboyF0GK2 nTypJjLYQxs8qVx1XvJEXns+iqze+UK7RXwzx1HBWlOcA68bbUi8VFVe0UWcudw7WDbI RxtkFr5dKXrRyVAGC4HOnY4xtyGFFR2cG+Nl7b3NjuzeWrysJ279c17R+vp3MhGW01UW 0giw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="CtY/mmYq"; 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=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a17090a348500b0023c1f976f2dsi12536230pjb.85.2023.03.18.23.07.43; Sat, 18 Mar 2023 23:07:58 -0700 (PDT) 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=@163.com header.s=s110527 header.b="CtY/mmYq"; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbjCSFJr (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sun, 19 Mar 2023 01:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjCSFJo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 01:09:44 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC38A12BD3; Sat, 18 Mar 2023 22:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=EV8Co y6UpeuOXMoDGXrNwPbs5KH0GOFsMnyQWDyA7a0=; b=CtY/mmYq1ri7zfUThaGP3 p/JicKlzuTo1dDD3O7lrqyO+ld0b+OQ+fpYdzoRaQqGBCbTF+kJMxtq29q+mb/3c WKsKSeN6vbN2k9xcFn9wUbr+BFXdx1L4OiefvKiE4/9uljOqSaIlQwHKRmubbz7L SH3VRSLzoP0hYVzojUX4KI= Received: from lizhe.. (unknown [120.245.132.192]) by zwqz-smtp-mta-g1-1 (Coremail) with SMTP id _____wC3bLHZmBZkflf2AQ--.3614S4; Sun, 19 Mar 2023 13:09:00 +0800 (CST) From: Lizhe <sensor1010@163.com> To: wintera@linux.ibm.com, wenjia@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lizhe <sensor1010@163.com> Subject: [PATCH v1] net/iucv: Remove redundant driver match function Date: Sun, 19 Mar 2023 13:08:40 +0800 Message-Id: <20230319050840.377727-1-sensor1010@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wC3bLHZmBZkflf2AQ--.3614S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jr1kAr4DGr47Kr1kXrW5ZFb_yoW3ZFXE93 4xZFn7Wrn2k3Z7Jan7Z395ArnFka1kGF4rWw4Sqasayw18W348Xw4vqrsxta4YgrWrCFZ8 C3srJr4UA347WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRKSdyUUUUUU== X-Originating-IP: [120.245.132.192] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiKBA3q17WMXDXKAAAsS X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760775192700552051?= X-GMAIL-MSGID: =?utf-8?q?1760775192700552051?= |
Series |
[v1] net/iucv: Remove redundant driver match function
|
|
Commit Message
Lizhe
March 19, 2023, 5:08 a.m. UTC
If there is no driver match function, the driver core assumes that each
candidate pair (driver, device) matches, see driver_match_device().
Drop the bus's match function that always returned 1 and so
implements the same behaviour as when there is no match function
Signed-off-by: Lizhe <sensor1010@163.com>
---
net/iucv/iucv.c | 6 ------
1 file changed, 6 deletions(-)
Comments
On Sun, Mar 19, 2023 at 01:08:40PM +0800, Lizhe wrote: > If there is no driver match function, the driver core assumes that each > candidate pair (driver, device) matches, see driver_match_device(). > > Drop the bus's match function that always returned 1 and so > implements the same behaviour as when there is no match function ... > > Signed-off-by: Lizhe <sensor1010@163.com> > --- > net/iucv/iucv.c | 6 ------ > 1 file changed, 6 deletions(-) ... > -static int iucv_bus_match(struct device *dev, struct device_driver *drv) > -{ > - return 0; ^^^^^^^^ If I'm not wrong then 0 != 1.
On Sun, 19 Mar 2023 21:16:31 +0100 Heiko Carstens <hca@linux.ibm.com> wrote: > On Sun, Mar 19, 2023 at 01:08:40PM +0800, Lizhe wrote: > > If there is no driver match function, the driver core assumes that each > > candidate pair (driver, device) matches, see driver_match_device(). > > > > Drop the bus's match function that always returned 1 and so > > implements the same behaviour as when there is no match function > ... > > > > Signed-off-by: Lizhe <sensor1010@163.com> > > --- > > net/iucv/iucv.c | 6 ------ > > 1 file changed, 6 deletions(-) > ... > > -static int iucv_bus_match(struct device *dev, struct device_driver *drv) > > -{ > > - return 0; > ^^^^^^^^ > > If I'm not wrong then 0 != 1. > Seems like an unchecked patch bot, proposed an identical bad patch for vfio/mdev. Thanks, Alex
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index fc3fddeb6f36..7dd15dead88e 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c @@ -62,14 +62,8 @@ #define IUCV_IPNORPY 0x10 #define IUCV_IPALL 0x80 -static int iucv_bus_match(struct device *dev, struct device_driver *drv) -{ - return 0; -} - struct bus_type iucv_bus = { .name = "iucv", - .match = iucv_bus_match, }; EXPORT_SYMBOL(iucv_bus);