Skip to content

Commit 64758c6

Browse files
krzkdavem330
authored andcommitted
nfc: pn544: 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 aed4146 commit 64758c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/nfc/pn544/mei.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ static int pn544_mei_probe(struct mei_cl_device *cldev,
2323
int r;
2424

2525
phy = nfc_mei_phy_alloc(cldev);
26-
if (!phy) {
27-
pr_err("Cannot allocate memory for pn544 mei phy.\n");
26+
if (!phy)
2827
return -ENOMEM;
29-
}
3028

3129
r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
3230
MEI_NFC_HEADER_SIZE, 0, MEI_NFC_MAX_HCI_PAYLOAD,

0 commit comments

Comments
 (0)