Re: [QEMU 1/1] nvme: Fix misleading macro when mixed with ternary operator

2022-07-12 Thread Klaus Jensen
On Jul 12 13:11, Stefan Hajnoczi wrote: > On Thu, Jul 07, 2022 at 01:36:21PM +, Darren Kenny wrote: > > Using the Parfait source code analyser and issue was found in > > hw/nvme/ctrl.c where the macros NVME_CAP_SET_CMBS and NVME_CAP_SET_PMRS > > are called with a ternary operatore in the second

Re: [QEMU 1/1] nvme: Fix misleading macro when mixed with ternary operator

2022-07-12 Thread Stefan Hajnoczi
On Thu, Jul 07, 2022 at 01:36:21PM +, Darren Kenny wrote: > Using the Parfait source code analyser and issue was found in > hw/nvme/ctrl.c where the macros NVME_CAP_SET_CMBS and NVME_CAP_SET_PMRS > are called with a ternary operatore in the second parameter, resulting > in a potentially unexpec