diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-01-25 17:33:27 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-01-26 17:14:34 -0500 |
commit | 2b702832ded5c0af4bc333396ad9527eabe72020 (patch) | |
tree | 46385d79dd9a6a0d3e44517be8c1fe5cc0cd43e8 | |
parent | ec03ff1a8f9a9e065fe905dd34078d272d8de6ea (diff) |
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>
-rw-r--r-- | drivers/nfc/st21nfca/i2c.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index b2e0792a38a0..82b82dbd2997 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c | |||
@@ -591,11 +591,8 @@ static int st21nfca_hci_i2c_probe(struct i2c_client *client, | |||
591 | 591 | ||
592 | phy = devm_kzalloc(&client->dev, sizeof(struct st21nfca_i2c_phy), | 592 | phy = devm_kzalloc(&client->dev, sizeof(struct st21nfca_i2c_phy), |
593 | GFP_KERNEL); | 593 | GFP_KERNEL); |
594 | if (!phy) { | 594 | if (!phy) |
595 | nfc_err(&client->dev, | ||
596 | "Cannot allocate memory for st21nfca i2c phy.\n"); | ||
597 | return -ENOMEM; | 595 | return -ENOMEM; |
598 | } | ||
599 | 596 | ||
600 | phy->i2c_dev = client; | 597 | phy->i2c_dev = client; |
601 | phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL); | 598 | phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL); |