|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH 12/12] xen/pci: address a violation of MISRA C Rule 16.3
On 10/09/24 16:59, Jan Beulich wrote: On 10.09.2024 16:57, Jan Beulich wrote:On 10.09.2024 12:09, Federico Serafini wrote:Address violations of MISRA C:2012 Rule 16.3: "An unconditional `break' statement shall terminate every switch-clause".Since in our interpretation "return" is okay too, why is not sufficient to simply ...
Do you prefer this?
case 1: case 2: case 4:
if ( *s )
fallthrough;
break;
default:
return -EINVAL;
--
Federico Serafini, M.Sc.
Software Engineer, BUGSENG (http://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |