[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] console: address a violation of MISRA C:2012 Rule 16.3



commit 163ea7d9a8ca5ac8f56822a3714d146e94a5e54d
Author:     Federico Serafini <federico.serafini@xxxxxxxxxxx>
AuthorDate: Wed Apr 3 09:37:47 2024 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Apr 3 09:37:47 2024 +0200

    console: address a violation of MISRA C:2012 Rule 16.3
    
    Add break statement to 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@xxxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/drivers/char/console.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index ccd5f8cc14..e185f80efe 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -568,6 +568,8 @@ static void __serial_rx(char c)
 
         if ( d != NULL )
             rcu_unlock_domain(d);
+
+        break;
     }
 #endif
     }
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.