staging: gdm724x: Remove print following unsuccessful kmalloc
PATCH 1/1 staging: gdm724x: Remove print following unsuccessful kmalloc
Challenge suggested by Coccinelle
Remove print statement following unsuccessful kmalloc when there is not enough memory. Kmalloc and variants normally produce a backtrace in such a case. Hence, a print statement is not necessary
Signed-off-by Sanjana Sanikommu <[email protected]>
--- drivers/staging/gdm724x/gdm_lte.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/gdm724x/gdm_lte.c +0 -1
@@ -871,7 +871,6 @@ int register_lte_device(struct phy_dev *phy_dev, net =alloc_netdev (sizeof (struct nic ), pdn_dev_name,NET_NAME_UNKNOWN , ether_setup);if (!net) { -pr_err ("alloc_netdev failed\n" ); ret = -ENOMEM ; goto err; }
Signature · 1 line
2.17.1