Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202586
b: refs/heads/master
c: 9bfca3c
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed May 31, 2010
1 parent 992f996 commit f853340
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: f5d72af9f3dfea67f014f880d00665f96622f57f
refs/heads/master: 9bfca3c6e5965a01b7c6d8e2f2ea30799c9d43bc
8 changes: 2 additions & 6 deletions trunk/net/caif/cfcnfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,15 @@ cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id, enum cfctrl_srv serv,
caif_assert(cnfg != NULL);
caif_assert(phyid != 0);
phyinfo = &cnfg->phy_layers[phyid];
caif_assert(phyinfo != NULL);
caif_assert(phyinfo->id == phyid);
caif_assert(phyinfo->phy_layer != NULL);
caif_assert(phyinfo->phy_layer->id == phyid);

if (phyinfo != NULL &&
phyinfo->phy_ref_count++ == 0 &&
phyinfo->phy_layer != NULL &&
phyinfo->phy_ref_count++;
if (phyinfo->phy_ref_count == 1 &&
phyinfo->phy_layer->modemcmd != NULL) {
caif_assert(phyinfo->phy_layer->id == phyid);
phyinfo->phy_layer->modemcmd(phyinfo->phy_layer,
_CAIF_MODEMCMD_PHYIF_USEFULL);

}
adapt_layer->id = channel_id;

Expand Down

0 comments on commit f853340

Please sign in to comment.