X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fnfc%2Fnci%2Fcore.c;h=56db888b1cd56785e23f0e0272d4ae3af87e32e6;hb=8ab47d3ec77d94ad9a6bb01efd696e1e34cfe80d;hp=46bda010bf11740c1a2fcd9002a193a7ab70801a;hpb=00e674702438b8b2abc9dd6b8b49d54a3e99baa7;p=~andy%2Flinux diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index 46bda010bf1..56db888b1cd 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c @@ -301,7 +301,7 @@ static int nci_open_device(struct nci_dev *ndev) rc = __nci_request(ndev, nci_reset_req, 0, msecs_to_jiffies(NCI_RESET_TIMEOUT)); - if (ndev->ops->setup(ndev)) + if (ndev->ops->setup) ndev->ops->setup(ndev); if (!rc) {