summaryrefslogtreecommitdiff
path: root/lwis_phy.c
diff options
context:
space:
mode:
authorEdmond Chung <edmondchung@google.com>2023-06-09 17:47:26 -0700
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-06-13 14:59:16 +0000
commit549ad5034c14919cea58daf43e6f784dcd243dd0 (patch)
tree68ee70ad276609c14eadc53328a39babd05182c9 /lwis_phy.c
parent601b73a5cf88feb18fad42698e0423c21bc9ce4a (diff)
downloadlwis-549ad5034c14919cea58daf43e6f784dcd243dd0.tar.gz
Remove unnecessary error logs from kmalloc
Bug: 286438999 Test: Build Change-Id: I02f0b13dd9f3b934eec345d98c61ef6e0e65fe5f Signed-off-by: Edmond Chung <edmondchung@google.com>
Diffstat (limited to 'lwis_phy.c')
-rw-r--r--lwis_phy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lwis_phy.c b/lwis_phy.c
index 7f2b8be..45cb019 100644
--- a/lwis_phy.c
+++ b/lwis_phy.c
@@ -26,13 +26,11 @@ struct lwis_phy_list *lwis_phy_list_alloc(int count)
list = kmalloc(sizeof(struct lwis_phy_list), GFP_KERNEL);
if (!list) {
- pr_err("Failed to allocate PHY list\n");
return ERR_PTR(-ENOMEM);
}
list->phy = kzalloc(count * sizeof(struct phy), GFP_KERNEL);
if (!list->phy) {
- pr_err("Failed to allocate PHY instances\n");
kfree(list);
return ERR_PTR(-ENOMEM);
}