summaryrefslogtreecommitdiff
path: root/drivers/nfc/microread
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-09-13 16:20:34 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-13 16:38:32 +0300
commit270be6940714e71328560682cf333bc0789263fc (patch)
treee9da2029e619ccfec54b187b7951d9e55db1c79d /drivers/nfc/microread
parent64758c6363ea27a68bedf70f76c6f9887957f70d (diff)
downloadlinux-270be6940714e71328560682cf333bc0789263fc.tar.xz
nfc: microread: drop unneeded memory allocation fail messages
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>
Diffstat (limited to 'drivers/nfc/microread')
-rw-r--r--drivers/nfc/microread/mei.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/nfc/microread/mei.c b/drivers/nfc/microread/mei.c
index 8edf761a6b2a..00689e18dc46 100644
--- a/drivers/nfc/microread/mei.c
+++ b/drivers/nfc/microread/mei.c
@@ -26,10 +26,8 @@ static int microread_mei_probe(struct mei_cl_device *cldev,
pr_info("Probing NFC microread\n");
phy = nfc_mei_phy_alloc(cldev);
- if (!phy) {
- pr_err("Cannot allocate memory for microread mei phy.\n");
+ if (!phy)
return -ENOMEM;
- }
r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,