From: 李哲 <sensor1010@163.com>
To: gregkh@linuxfoundation.org, rafael@kernel.org
Cc: linux-kernel@vger.kernel.org, 李哲 <sensor1010@163.com>
Subject: [PATCH] driver:core: no need to set a default value for want_async
Date: Thu, 11 Jul 2024 08:05:45 -0700 [thread overview]
Message-ID: <20240711150545.3143-1-sensor1010@163.com> (raw)
The default value of this member variable is false,
which is only set to true when asynchronous loading is required,
and does not need to be set to false during synchronization
Signed-off-by: 李哲 <sensor1010@163.com>
---
drivers/base/dd.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index d047919d1f5e..47351d98f6e1 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -1014,7 +1014,6 @@ static int __device_attach(struct device *dev, bool allow_async)
struct device_attach_data data = {
.dev = dev,
.check_async = allow_async,
- .want_async = false,
};
if (dev->parent)
--
2.17.1
next reply other threads:[~2024-07-11 15:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 15:05 李哲 [this message]
2024-07-11 15:13 ` [PATCH] driver:core: no need to set a default value for want_async Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240711150545.3143-1-sensor1010@163.com \
--to=sensor1010@163.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).