NFC: st21nfca: Remove checkpatch.pl warning Possible unnecessary 'out of memory' message
Remove unnecessary memory allocation message already shown by devm_kzalloc. This remove a warning when running scripts/checkpatch. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>hifive-unleashed-5.1
parent
ec03ff1a8f
commit
2b702832de
|
@ -591,11 +591,8 @@ static int st21nfca_hci_i2c_probe(struct i2c_client *client,
|
||||||
|
|
||||||
phy = devm_kzalloc(&client->dev, sizeof(struct st21nfca_i2c_phy),
|
phy = devm_kzalloc(&client->dev, sizeof(struct st21nfca_i2c_phy),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!phy) {
|
if (!phy)
|
||||||
nfc_err(&client->dev,
|
|
||||||
"Cannot allocate memory for st21nfca i2c phy.\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
phy->i2c_dev = client;
|
phy->i2c_dev = client;
|
||||||
phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL);
|
phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in New Issue