Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

w1: Drop allocation error message

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>

authored by

Thorsten Blum and committed by
Krzysztof Kozlowski
26bf5fc8 56813b24

+1 -5
+1 -5
drivers/w1/w1_int.c
··· 32 32 * We are in process context(kernel thread), so can sleep. 33 33 */ 34 34 dev = kzalloc(sizeof(struct w1_master) + sizeof(struct w1_bus_master), GFP_KERNEL); 35 - if (!dev) { 36 - pr_err("Failed to allocate %zd bytes for new w1 device.\n", 37 - sizeof(struct w1_master)); 35 + if (!dev) 38 36 return NULL; 39 - } 40 - 41 37 42 38 dev->bus_master = (struct w1_bus_master *)(dev + 1); 43 39