Skip to content

Commit 270be69

Browse files
krzkdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 64758c6 commit 270be69

File tree

1 file changed

+1
-3
lines changed
  • drivers/nfc/microread

1 file changed

+1
-3
lines changed

drivers/nfc/microread/mei.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ static int microread_mei_probe(struct mei_cl_device *cldev,
2626
pr_info("Probing NFC microread\n");
2727

2828
phy = nfc_mei_phy_alloc(cldev);
29-
if (!phy) {
30-
pr_err("Cannot allocate memory for microread mei phy.\n");
29+
if (!phy)
3130
return -ENOMEM;
32-
}
3331

3432
r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
3533
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,

0 commit comments

Comments
 (0)