Re: [PATCH] xen/notifier: simplify using notifier_[to|from]_errno()

2022-11-15 Thread Julien Grall
Hi Juergen, On 28/10/2022 12:41, Juergen Gross wrote: Today all users of notifier_from_errno() and notifier_to_errno() are Handling the success case the same way, by using !rc ? NOTIFY_DONE : notifier_from_errno(rc) or (notifier_rc == NOTIFY_DONE) ? 0 : notifier_to_errno(notifier_rc);

Re: [PATCH] xen/notifier: simplify using notifier_[to|from]_errno()

2022-11-10 Thread Jan Beulich
On 28.10.2022 13:41, Juergen Gross wrote: > Today all users of notifier_from_errno() and notifier_to_errno() are > Handling the success case the same way, by using > > !rc ? NOTIFY_DONE : notifier_from_errno(rc) > > or > > (notifier_rc == NOTIFY_DONE) ? 0 : notifier_to_errno(notifier_rc); >

Re: [PATCH] xen/notifier: simplify using notifier_[to|from]_errno()

2022-11-04 Thread Dario Faggioli
On Fri, 2022-10-28 at 13:41 +0200, Juergen Gross wrote: > Today all users of notifier_from_errno() and notifier_to_errno() are > Handling the success case the same way, by using > >   !rc ? NOTIFY_DONE : notifier_from_errno(rc) > > or > >   (notifier_rc == NOTIFY_DONE) ? 0 :

[PATCH] xen/notifier: simplify using notifier_[to|from]_errno()

2022-10-28 Thread Juergen Gross
Today all users of notifier_from_errno() and notifier_to_errno() are Handling the success case the same way, by using !rc ? NOTIFY_DONE : notifier_from_errno(rc) or (notifier_rc == NOTIFY_DONE) ? 0 : notifier_to_errno(notifier_rc); Simplify the use cases by moving the handling of the