diff options
Diffstat (limited to 'drivers/nfc/st21nfcb/ndlc.c')
-rw-r--r-- | drivers/nfc/st21nfcb/ndlc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/nfc/st21nfcb/ndlc.c b/drivers/nfc/st21nfcb/ndlc.c index 5fbf59d2138c..6014b5859465 100644 --- a/drivers/nfc/st21nfcb/ndlc.c +++ b/drivers/nfc/st21nfcb/ndlc.c | |||
@@ -256,10 +256,9 @@ int ndlc_probe(void *phy_id, struct nfc_phy_ops *phy_ops, struct device *dev, | |||
256 | struct llt_ndlc *ndlc; | 256 | struct llt_ndlc *ndlc; |
257 | 257 | ||
258 | ndlc = devm_kzalloc(dev, sizeof(struct llt_ndlc), GFP_KERNEL); | 258 | ndlc = devm_kzalloc(dev, sizeof(struct llt_ndlc), GFP_KERNEL); |
259 | if (!ndlc) { | 259 | if (!ndlc) |
260 | nfc_err(dev, "Cannot allocate memory for ndlc.\n"); | ||
261 | return -ENOMEM; | 260 | return -ENOMEM; |
262 | } | 261 | |
263 | ndlc->ops = phy_ops; | 262 | ndlc->ops = phy_ops; |
264 | ndlc->phy_id = phy_id; | 263 | ndlc->phy_id = phy_id; |
265 | ndlc->dev = dev; | 264 | ndlc->dev = dev; |