>>> On 17.10.17 at 14:03, <roger....@citrix.com> wrote: > --- a/xen/arch/x86/string.c > +++ b/xen/arch/x86/string.c > @@ -39,6 +39,9 @@ void *(memmove)(void *dest, const void *src, size_t n) > { > long d0, d1, d2; > > + if ( !n ) > + return;
memmove() hopefully isn't on any really hot path, so the extra conditional shouldn't hurt much. Personally I think in cases like this, where the compiler would need to step out of its way in order to cause actually unexpected behavior, it is rather pointless to try to please a checking tool. Anyway, Reviewed-by: Jan Beulich <jbeul...@suse.com> Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel