pdu already is checked previously.
it means pdu is not null
so execution cannot reach removed code.
Change-Id: I2cf8a862937f197fb639f41fbf9e355841bad2e3
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1034
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Naga Ashok Jampani <jn.ashok@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
}
coap_hdr_t *hdr = (coap_hdr_t *) pdu;
- if (NULL == hdr)
- {
- return CA_MSG_NONCONFIRM;
- }
return (CAMessageType_t) hdr->type;
}
}
coap_hdr_t *hdr = (coap_hdr_t *) pdu;
- if (NULL == hdr)
- {
- return 0;
- }
return hdr->id;
}
}
coap_hdr_t *hdr = (coap_hdr_t *) pdu;
- if (NULL == hdr)
- {
- OIC_LOG(ERROR, TAG, "hdr is null");
- return CA_NOT_FOUND;
- }
return (CAResponseResult_t) CA_RESPONSE_CODE(hdr->code);
}