Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266387
b: refs/heads/master
c: 8ebafde
h: refs/heads/master
i:
  266385: a0e1124
  266383: 91edbb6
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Sep 27, 2011
1 parent 9b75966 commit 2f8e20b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84b1bec6d716fc8c289e2530cab109a6e097455b
refs/heads/master: 8ebafde00ed0c682fed8c34ac5ba90160ea0bb30
14 changes: 6 additions & 8 deletions trunk/net/nfc/nci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,19 +499,19 @@ struct nci_dev *nci_allocate_device(struct nci_ops *ops,
int tx_headroom,
int tx_tailroom)
{
struct nci_dev *ndev = NULL;
struct nci_dev *ndev;

nfc_dbg("entry, supported_protocols 0x%x", supported_protocols);

if (!ops->open || !ops->close || !ops->send)
goto exit;
return NULL;

if (!supported_protocols)
goto exit;
return NULL;

ndev = kzalloc(sizeof(struct nci_dev), GFP_KERNEL);
if (!ndev)
goto exit;
return NULL;

ndev->ops = ops;
ndev->tx_headroom = tx_headroom;
Expand All @@ -526,13 +526,11 @@ struct nci_dev *nci_allocate_device(struct nci_ops *ops,

nfc_set_drvdata(ndev->nfc_dev, ndev);

goto exit;
return ndev;

free_exit:
kfree(ndev);

exit:
return ndev;
return NULL;
}
EXPORT_SYMBOL(nci_allocate_device);

Expand Down

0 comments on commit 2f8e20b

Please sign in to comment.