You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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: Robert Dolca <robert.dolca@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
a9433c11b1
commit
e4dbd62528
+1
-2
@@ -402,9 +402,8 @@ static int nci_open_device(struct nci_dev *ndev)
|
|||||||
msecs_to_jiffies(NCI_INIT_TIMEOUT));
|
msecs_to_jiffies(NCI_INIT_TIMEOUT));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ndev->ops->post_setup) {
|
if (!rc && ndev->ops->post_setup)
|
||||||
rc = ndev->ops->post_setup(ndev);
|
rc = ndev->ops->post_setup(ndev);
|
||||||
}
|
|
||||||
|
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
rc = __nci_request(ndev, nci_init_complete_req, 0,
|
rc = __nci_request(ndev, nci_init_complete_req, 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user