From acbdd0b73ac6bf8f69ce4c55e205d7bf486b2a8e Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Sat, 17 Jul 2021 08:44:00 +0200 Subject: [PATCH] Fix Linux kernel coding style warning Possible repeated word: '...' Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- gpst.c | 2 +- lzs.c | 2 +- openconnect.h | 2 +- vhost.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gpst.c b/gpst.c index d93426df..02fdd001 100644 --- a/gpst.c +++ b/gpst.c @@ -1361,7 +1361,7 @@ int gpst_esp_send_probes(struct openconnect_info *vpninfo) * "monitor\x00\x00pan ha 0123456789:;<=>? !\"#$%&\'()*+,-./\x10\x11\x12\x13\x14\x15\x16\x17"; * * 2) The ping packets are addressed to the IP supplied in the - * config XML as as . In most cases, this is the + * config XML as . In most cases, this is the * same as the *external* IP address of the VPN gateway * (vpninfo->ip_info.gateway_addr), but in some cases it is a * separate address. diff --git a/lzs.c b/lzs.c index 05409fa7..f66cc245 100644 --- a/lzs.c +++ b/lzs.c @@ -37,7 +37,7 @@ do { \ if (srclen < 2) \ return -EINVAL; \ /* Explicit comparison with 8 to optimise it into a tautology \ - * in the the bits == 9 case, because the compiler doesn't \ + * in the bits == 9 case, because the compiler doesn't * know that bits_left can never be larger than 8. */ \ if (bits >= 8 || bits >= bits_left) { \ /* We need *all* the bits that are left in the current \ diff --git a/openconnect.h b/openconnect.h index 210481de..4f2297a1 100644 --- a/openconnect.h +++ b/openconnect.h @@ -392,7 +392,7 @@ int openconnect_set_csd_environ(struct openconnect_info *vpninfo, /* This string is static, valid only while the connection lasts. If you * are going to cache this to remember which certs the user has accepted, * make sure you also store the host/port for which it was accepted and - * don't just accept this cert from *anywhere*. Also use use the check + * don't just accept this cert from *anywhere*. Also use the check * function below instead of manually comparing. When this function * returns a string which *doesn't* match the previously-stored hash * matched with openconnect_check_peer_cert_hash(), you should store diff --git a/vhost.c b/vhost.c index 5e045292..e95ea6cb 100644 --- a/vhost.c +++ b/vhost.c @@ -552,7 +552,7 @@ int vhost_tun_mainloop(struct openconnect_info *vpninfo, int *timeout, int reada } /* If we aren't going to have one more turn around the mainloop, - * set the wake event indices. And if we find the the rings have + * set the wake event indices. And if we find the rings have * moved on while we're doing that, take one more turn around * the mainloop... */ return did_work || set_ring_wake(vpninfo, 1) || set_ring_wake(vpninfo, 0); -- 2.50.1