On Thu, 29 Nov 2018 16:53:28 -0500 Tony Krowiak <akrow...@linux.ibm.com> wrote:
> On 11/22/18 11:35 AM, Pierre Morel wrote: > > +static uint32_t ap_pqap_clear_irq(VFIODevice *vdev, APQueue *apq) > > +{ > > + struct vfio_ap_aqic param; > > + uint32_t retval; > > + > > + param.apqn = apq->apqn; > > + param.isc = apq->isc; > > + param.argsz = sizeof(param); > > + > > + retval = ioctl(vdev->fd, VFIO_AP_CLEAR_IRQ, ¶m); > > + switch (retval) { > > + case 0: /* Fall through and return the instruction status */ > > Unnecessary comment, we can see the code is going to fall through and > return status. Sorry, I know its a nit. FWIW, some static code checking tools look for annotations like /* Fallthrough */ as an indication that a fallthrough is actually intended and not a coding error.