cert_create: merge successive i2d_ASN1_INTEGER() calls
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 <378b411a8a63ecc7605ec4272234862d7781c6ae@socionext.com>

sbranden/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,sbranden/arm-trusted-firmware,achingupta/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,achingupta/arm-trusted-firmware