Skip to content

Commit

Permalink
Remove magic number to check ECHO MDEPs in HDP
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaden authored and Jaikumar Ganesh committed Mar 11, 2011
1 parent 6af90f5 commit cc982cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions health/hdp.c
Expand Up @@ -1042,8 +1042,7 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,

DBG("Data channel request");

if (mdepid == 0) {
/* Is an echo channel */
if (mdepid == HDP_MDEP_ECHO) {
switch (*conf) {
case HDP_NO_PREFERENCE_DC:
*conf = HDP_RELIABLE_DC;
Expand Down

0 comments on commit cc982cf

Please sign in to comment.