lkml.org 
[lkml]   [2019]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] x86/hyper-v: micro-optimize send_ipi_one case
    Date
    On Fri, Oct 25, 2019 at 12:38:05AM +0200, Thomas Gleixner wrote:
    > On Thu, 24 Oct 2019, Roman Kagan wrote:
    > > > +
    > > > + if (cpu >= 64)
    > > > + goto do_ex_hypercall;
    > > > +
    > > > + ret = hv_do_fast_hypercall16(HVCALL_SEND_IPI, vector,
    > > > + BIT_ULL(hv_cpu_number_to_vp_number(cpu)));
    > > > + return ((ret == 0) ? true : false);
    > >
    > > D'oh. Isn't "return ret == 0;" or just "return ret;" good enough?
    >
    > 'return ret == 0' != 'return ret'
    >
    > !ret perhaps :)

    Sure. Time to vacuum my keyboard ;)

    Thanks,
    Roman.

    \
     
     \ /
      Last update: 2019-10-25 11:42    [W:4.238 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site