aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/gdm724x
diff options
context:
space:
mode:
authorBhanusree Pola <bhanusreemahesh@gmail.com>2019-03-22 18:10:10 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-22 15:16:28 +0100
commita41d42a9fda3a0aac36edeeb730da85e8cab0b1d (patch)
treeafad2aba86a77b7c6aac5f17016b6b5dc7ed1530 /drivers/staging/gdm724x
parentStaging: comedi: ni_mio_common.c: Added blank line after declarations (diff)
downloadlinux-dev-a41d42a9fda3a0aac36edeeb730da85e8cab0b1d.tar.xz
linux-dev-a41d42a9fda3a0aac36edeeb730da85e8cab0b1d.zip
Staging: gdm724x: Remove unnecessary print statements
Remove print statements that provide information about error messages when memory allocation is failed. Issue found using coccinelle The following semantic patch is used to solve this: <smpl> @@ expression x; constant char[] C; identifier f; @@ x = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\| usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\)(...)); if(x==NULL) { ... ( -f(C,...); | -f(...,C); ) ... } </smpl> Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x')
-rw-r--r--drivers/staging/gdm724x/gdm_lte.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
index 3c2aab7a921e..db11498f6fc7 100644
--- a/drivers/staging/gdm724x/gdm_lte.c
+++ b/drivers/staging/gdm724x/gdm_lte.c
@@ -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;
}