qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Pan Nengyuan <pannengyuan@huawei.com>
Cc: euler.robot@huawei.com, zhukeqian1@huawei.com,
	qemu-devel@nongnu.org,
	zhanghailiang <zhang.zhanghailiang@huawei.com>
Subject: Re: [PATCH] hmp-cmd: fix a missing_break warning
Date: Tue, 24 Mar 2020 17:40:32 +0000	[thread overview]
Message-ID: <20200324174032.GA17043@work-vm> (raw)
In-Reply-To: <1a0d020b-3fe6-3575-1c2f-1af4a79cf080@huawei.com>

* Pan Nengyuan (pannengyuan@huawei.com) wrote:
> Correcting zhang hailiang's email.

Queued

> On 3/18/2020 3:16 PM, Pan Nengyuan wrote:
> > This fix coverity issues 94417686:
> >     1260        break;
> >     CID 94417686: (MISSING_BREAK)
> >     1261. unterminated_case: The case for value "MIGRATION_PARAMETER_THROTTLE_TRIGGER_THRESHOLD" is not terminated by a 'break' statement.
> >     1261    case MIGRATION_PARAMETER_THROTTLE_TRIGGER_THRESHOLD:
> >     1262        p->has_throttle_trigger_threshold = true;
> >     1263        visit_type_int(v, param, &p->throttle_trigger_threshold, &err);
> >     1264    case MIGRATION_PARAMETER_CPU_THROTTLE_INITIAL:
> > 
> > Fixes: dc14a470763c96fd9d360e1028ce38e8c3613a77
> > Reported-by: Euler Robot <euler.robot@huawei.com>
> > Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
> > ---
> > Cc: zhukeqian1@huawei.com
> > ---
> >  monitor/hmp-cmds.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
> > index 58724031ea..c882c9f3cc 100644
> > --- a/monitor/hmp-cmds.c
> > +++ b/monitor/hmp-cmds.c
> > @@ -1261,6 +1261,7 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict)
> >      case MIGRATION_PARAMETER_THROTTLE_TRIGGER_THRESHOLD:
> >          p->has_throttle_trigger_threshold = true;
> >          visit_type_int(v, param, &p->throttle_trigger_threshold, &err);
> > +        break;
> >      case MIGRATION_PARAMETER_CPU_THROTTLE_INITIAL:
> >          p->has_cpu_throttle_initial = true;
> >          visit_type_int(v, param, &p->cpu_throttle_initial, &err);
> > 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



  parent reply	other threads:[~2020-03-24 17:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18  7:16 [PATCH] hmp-cmd: fix a missing_break warning Pan Nengyuan
2020-03-18  7:22 ` Pan Nengyuan
2020-03-18  8:10   ` zhukeqian
2020-03-24 17:40   ` Dr. David Alan Gilbert [this message]
2020-03-18 11:30 ` Dr. David Alan Gilbert
2020-03-18 11:36 ` Philippe Mathieu-Daudé
2020-03-20 15:59 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200324174032.GA17043@work-vm \
    --to=dgilbert@redhat.com \
    --cc=euler.robot@huawei.com \
    --cc=pannengyuan@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhang.zhanghailiang@huawei.com \
    --cc=zhukeqian1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).