Skip to content

Commit 05dc794

Browse files
committed
driver core: Trivially simplify ((struct device_private *)curr)->device->p to @Curr
JIRA: https://issues.redhat.com/browse/RHEL-81536 commit efb0b30 Author: Zijun Hu <quic_zijuhu@quicinc.com> Date: Wed, 11 Sep 2024 16:31:02 +0000 Trivially simplify ((struct device_private *)curr)->device->p to @Curr in deferred_devs_show() since both are same. Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20240908-trivial_simpli-v1-1-53e0f1363299@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent 0f62e53 commit 05dc794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/dd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static int deferred_devs_show(struct seq_file *s, void *data)
248248

249249
list_for_each_entry(curr, &deferred_probe_pending_list, deferred_probe)
250250
seq_printf(s, "%s\t%s", dev_name(curr->device),
251-
curr->device->p->deferred_probe_reason ?: "\n");
251+
curr->deferred_probe_reason ?: "\n");
252252

253253
mutex_unlock(&deferred_probe_mutex);
254254

0 commit comments

Comments
 (0)