From 8504783a018893f27d48b69feef82e5534ca6544 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Sat, 17 Jul 2021 10:35:52 +0200 Subject: [PATCH] Fix Linux kernel coding style warning switch default: should use break Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- array.c | 2 +- cstp.c | 2 +- oncp.c | 2 +- ppp.c | 2 +- pulse.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/array.c b/array.c index e6f7bf71..cd3ce10b 100644 --- a/array.c +++ b/array.c @@ -893,7 +893,7 @@ int array_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable) return work_done; default: /* This should never happen */ - ; + break; } } diff --git a/cstp.c b/cstp.c index f2bc22da..1b763d2c 100644 --- a/cstp.c +++ b/cstp.c @@ -1059,7 +1059,7 @@ int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable) return work_done; default: /* This should never happen */ - ; + break; } } diff --git a/oncp.c b/oncp.c index 206134eb..f892dd9d 100644 --- a/oncp.c +++ b/oncp.c @@ -1069,7 +1069,7 @@ int oncp_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable) return work_done; default: /* This should never happen */ - ; + break; } #else return work_done; diff --git a/ppp.c b/ppp.c index cfffe923..e8a52f75 100644 --- a/ppp.c +++ b/ppp.c @@ -1367,7 +1367,7 @@ static int ppp_mainloop(struct openconnect_info *vpninfo, int dtls, default: /* This can never happen because ka_stalled_action() * always returns one of the above. */ - ; + break; } } diff --git a/pulse.c b/pulse.c index 2c467138..dc352820 100644 --- a/pulse.c +++ b/pulse.c @@ -2782,7 +2782,7 @@ int pulse_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable) return work_done; default: /* This should never happen */ - ; + break; } #else return work_done; @@ -2871,7 +2871,7 @@ int pulse_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable) vpn_progress(vpninfo, PRG_DEBUG, _("Send CSTP Keepalive\n")); - vpninfo->current_ssl_pkt = (struct pkt *)&keepalive_pkt; + vpninfo->current/volatile/src/openconnect/pulse.c_ssl_pkt = (struct pkt *)&keepalive_pkt; goto handle_outgoing; case KA_NONE: -- 2.50.1