From: Tetsuo Handa Date: Mon, 17 Jan 2011 00:27:27 +0000 (+0900) Subject: trusted-keys: avoid scattring va_end() X-Git-Tag: v2.6.38-rc2~26^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=154a96bfcd53b8e5020718c64769e542c44788b9;p=pandora-kernel.git trusted-keys: avoid scattring va_end() We can avoid scattering va_end() within the va_start(); for (;;) { } va_end(); loop, assuming that crypto_shash_init()/crypto_shash_update() return 0 on success and negative value otherwise. Make TSS_authhmac()/TSS_checkhmac1()/TSS_checkhmac2() similar to TSS_rawhmac() by removing "va_end()/goto" from the loop. Signed-off-by: Tetsuo Handa Reviewed-by: Jesper Juhl Acked-by: Mimi Zohar Acked-by: David Howells Signed-off-by: James Morris --- Reading git-diff-tree failed