Message ID | 94b99b09-8f6f-3532-0738-b2edba96dd26@users.sourceforge.net (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Samuel Ortiz |
Headers | show |
diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c index 3baf91f3ef80..8e02a3e1b319 100644 --- a/net/nfc/digital_core.c +++ b/net/nfc/digital_core.c @@ -710,7 +710,5 @@ static int digital_in_send(struct nfc_dev *nfc_dev, struct nfc_target *target, - if (!data_exch) { - pr_err("Failed to allocate data_exch struct\n"); + if (!data_exch) return -ENOMEM; - } data_exch->cb = cb; data_exch->cb_context = cb_context;