Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
On the previous line we return if cb is Null, so testing cb is worthless.
Dead code, found by coverity.

Signed-off-by: Simo Sorce <simo@redhat.com>
  • Loading branch information
simo5 authored and vlm committed Mar 26, 2017
1 parent 2bfb34c commit 9cbd9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skeletons/der_encoder.c
Expand Up @@ -146,8 +146,8 @@ der_write_tags(asn_TYPE_descriptor_t *sd,

if(!cb) return overall_length - struct_length;

ASN_DEBUG("%s %s TL sequence (%d elements)",
cb?"Encoding":"Estimating", sd->name, tags_count);
ASN_DEBUG("Encoding %s TL sequence (%d elements)", sd->name,
tags_count);

/*
* Encode the TL sequence for real.
Expand Down

0 comments on commit 9cbd9b8

Please sign in to comment.