lkml.org 
[lkml]   [2023]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1] net/iucv: Remove redundant driver match function
Date
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(-)

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);

--
2.34.1
\
 
 \ /
  Last update: 2023-03-27 01:06    [W:0.037 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site