|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH 12/12] xen/pci: address a violation of MISRA C Rule 16.3
Address violations of MISRA C:2012 Rule 16.3:
"An unconditional `break' statement shall terminate every
switch-clause".
No functional change.
Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx>
---
xen/drivers/passthrough/pci.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
index 5a446d3dce..a5705def3f 100644
--- a/xen/drivers/passthrough/pci.c
+++ b/xen/drivers/passthrough/pci.c
@@ -170,8 +170,10 @@ static int __init cf_check parse_phantom_dev(const char
*str)
{
case 1: case 2: case 4:
if ( *s )
- default:
return -EINVAL;
+ break;
+ default:
+ return -EINVAL;
}
phantom_devs[nr_phantom_devs++] = phantom;
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |