Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4dbd625 authored by Robert Dolca's avatar Robert Dolca Committed by Samuel Ortiz
Browse files

NFC: nci: Do not call post_setup when setup fails



The driver should know that it can continue with post setup where
setup left off. Being able to execute post_setup when setup fails
may force the developer to keep this state in the driver.

Signed-off-by: default avatarRobert Dolca <robert.dolca@intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent a9433c11
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -402,9 +402,8 @@ static int nci_open_device(struct nci_dev *ndev)
				   msecs_to_jiffies(NCI_INIT_TIMEOUT));
	}

	if (ndev->ops->post_setup) {
	if (!rc && ndev->ops->post_setup)
		rc = ndev->ops->post_setup(ndev);
	}

	if (!rc) {
		rc = __nci_request(ndev, nci_init_complete_req, 0,