NFC: st21nfca: Remove checkpatch.pl warning Possible unnecessary 'out of memory'...
[firefly-linux-kernel-4.4.55.git] / drivers / nfc / st21nfca / i2c.c
index b2e0792a38a0236e569ce28ebdd216716ba1f2c0..82b82dbd29973daf8a7c5d075beb0eaa8b9183c8 100644 (file)
@@ -591,11 +591,8 @@ static int st21nfca_hci_i2c_probe(struct i2c_client *client,
 
        phy = devm_kzalloc(&client->dev, sizeof(struct st21nfca_i2c_phy),
                           GFP_KERNEL);
-       if (!phy) {
-               nfc_err(&client->dev,
-                       "Cannot allocate memory for st21nfca i2c phy.\n");
+       if (!phy)
                return -ENOMEM;
-       }
 
        phy->i2c_dev = client;
        phy->pending_skb = alloc_skb(ST21NFCA_HCI_LLC_MAX_SIZE * 2, GFP_KERNEL);