|
@@ -707,10 +707,8 @@ static int digital_in_send(struct nfc_dev *nfc_dev, struct nfc_target *target,
|
|
int rc;
|
|
int rc;
|
|
|
|
|
|
data_exch = kzalloc(sizeof(*data_exch), GFP_KERNEL);
|
|
data_exch = kzalloc(sizeof(*data_exch), GFP_KERNEL);
|
|
- if (!data_exch) {
|
|
|
|
- pr_err("Failed to allocate data_exch struct\n");
|
|
|
|
|
|
+ if (!data_exch)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- }
|
|
|
|
|
|
|
|
data_exch->cb = cb;
|
|
data_exch->cb = cb;
|
|
data_exch->cb_context = cb_context;
|
|
data_exch->cb_context = cb_context;
|