Skip to content

Commit 054a554

Browse files
committed
crypto: x86/curve25519 - Remove unused carry variables
The carry variables are assigned but never used, which upsets the compiler. This patch removes them. Signed-off-by: Herbert Xu <[email protected]> Reviewed-by: Karthikeyan Bhargavan <[email protected]> Acked-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 190873a commit 054a554

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/x86/crypto/curve25519-x86_64.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,8 @@ static void store_felem(u64 *b, u64 *f)
948948
{
949949
u64 f30 = f[3U];
950950
u64 top_bit0 = f30 >> (u32)63U;
951-
u64 carry0;
952951
u64 f31;
953952
u64 top_bit;
954-
u64 carry;
955953
u64 f0;
956954
u64 f1;
957955
u64 f2;
@@ -970,11 +968,11 @@ static void store_felem(u64 *b, u64 *f)
970968
u64 o2;
971969
u64 o3;
972970
f[3U] = f30 & (u64)0x7fffffffffffffffU;
973-
carry0 = add_scalar(f, f, (u64)19U * top_bit0);
971+
add_scalar(f, f, (u64)19U * top_bit0);
974972
f31 = f[3U];
975973
top_bit = f31 >> (u32)63U;
976974
f[3U] = f31 & (u64)0x7fffffffffffffffU;
977-
carry = add_scalar(f, f, (u64)19U * top_bit);
975+
add_scalar(f, f, (u64)19U * top_bit);
978976
f0 = f[0U];
979977
f1 = f[1U];
980978
f2 = f[2U];

0 commit comments

Comments
 (0)