cert_create: merge successive i2d_ASN1_INTEGER() calls
The ext_new_nvcounter() function calls i2d_ASN1_INTEGER() twice;
the first call to get the return value "sz", and the second one
for writing data into the buffer.  This is actually redundant.
We can do both by one function call.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 762f1eb commit 559eb8b79afb03a3840b90f5070df692a693de05
@Masahiro Yamada Masahiro Yamada authored on 6 Feb 2017
Showing 1 changed file
View
tools/cert_create/src/ext.c