* [PATCH 2/2] w1: Remove pointless debug code
@ 2020-09-09 19:41 Alex Dewar
0 siblings, 0 replies; only message in thread
From: Alex Dewar @ 2020-09-09 19:41 UTC (permalink / raw)
Cc: Alex Dewar, Evgeniy Polyakov, linux-kernel
It doesn't seem obvious why zeroing sl before freeing it would help with
debugging, so just remove this code.
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
---
drivers/w1/w1.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 4f597b0fd1da..02a0e66144a4 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -801,9 +801,6 @@ int w1_unref_slave(struct w1_slave *sl)
w1_family_notify(BUS_NOTIFY_DEL_DEVICE, sl);
device_unregister(&sl->dev);
- #ifdef DEBUG
- memset(sl, 0, sizeof(*sl));
- #endif
kfree(sl);
}
atomic_dec(&dev->refcnt);
--
2.28.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-09 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 19:41 [PATCH 2/2] w1: Remove pointless debug code Alex Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®