projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aed4146
)
nfc: pn544: drop unneeded memory allocation fail messages
author
Krzysztof Kozlowski
<krzysztof.kozlowski@canonical.com>
Mon, 13 Sep 2021 13:20:28 +0000
(15:20 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 13 Sep 2021 13:38:01 +0000
(14:38 +0100)
nfc_mei_phy_alloc() already prints an error message on memory allocation
failure.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn544/mei.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/pn544/mei.c
b/drivers/nfc/pn544/mei.c
index a519fa0a53e219ecec120b1f14861da256c6a573..c493f2dbd0e21136bbec6850e741d052a9502190 100644
(file)
--- a/
drivers/nfc/pn544/mei.c
+++ b/
drivers/nfc/pn544/mei.c
@@
-23,10
+23,8
@@
static int pn544_mei_probe(struct mei_cl_device *cldev,
int r;
phy = nfc_mei_phy_alloc(cldev);
- if (!phy) {
- pr_err("Cannot allocate memory for pn544 mei phy.\n");
+ if (!phy)
return -ENOMEM;
- }
r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,