projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56813b2
)
w1: Drop allocation error message
author
Thorsten Blum
<thorsten.blum@toblux.com>
Mon, 27 May 2024 13:49:47 +0000
(15:49 +0200)
committer
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Tue, 28 May 2024 15:45:02 +0000
(17:45 +0200)
Drop the custom error message because kzalloc() already prints
allocation failures.
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link:
https://lore.kernel.org/r/20240527134946.338398-2-thorsten.blum@toblux.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/w1/w1_int.c
patch
|
blob
|
history
diff --git
a/drivers/w1/w1_int.c
b/drivers/w1/w1_int.c
index 3a71c5eb2f837fee980adcf2d3fbcfce3346e342..19a0ea28e9f39a1d5000b7f9520b70b9d55525a2 100644
(file)
--- a/
drivers/w1/w1_int.c
+++ b/
drivers/w1/w1_int.c
@@
-32,12
+32,8
@@
static struct w1_master *w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
* We are in process context(kernel thread), so can sleep.
*/
dev = kzalloc(sizeof(struct w1_master) + sizeof(struct w1_bus_master), GFP_KERNEL);
- if (!dev) {
- pr_err("Failed to allocate %zd bytes for new w1 device.\n",
- sizeof(struct w1_master));
+ if (!dev)
return NULL;
- }
-
dev->bus_master = (struct w1_bus_master *)(dev + 1);