OSDN Git Service

wireguard: noise: do not assign initiation time in if condition
authorFrank Werner-Krippendorf <mail@hb9fxq.ch>
Tue, 23 Jun 2020 09:59:44 +0000 (03:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 21:50:34 +0000 (14:50 -0700)
commit558b353c9c2a717509f291c066c6bd8f5f5e21be
tree88d932afc579a9963b27a3593e36f1ac59cb05a2
parentf7fb92acd9e5606f6666bb0f9a7240002a6b3ff0
wireguard: noise: do not assign initiation time in if condition

Fixes an error condition reported by checkpatch.pl which caused by
assigning a variable in an if condition in wg_noise_handshake_consume_
initiation().

Signed-off-by: Frank Werner-Krippendorf <mail@hb9fxq.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireguard/noise.c