xen/pci: address a violation of MISRA C Rule 16.3

Refactor the code to avoid an implicit fallthrough and address
a violation 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@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Federico Serafini authored and Jan Beulich committed 2024-10-08 14:37:16 +02:00
1 parent 7f743fac94
commit 7d83c392c7
1 file changed
+4 -1
+4 -1
View File
@@ -170,8 +170,11 @@ 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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.