]> xenbits.xensource.com Git - xen.git/commit
xen/char: mvebu-uart: Fix MISRA C 2012 Rule 20.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 3 Aug 2022 07:09:58 +0000 (10:09 +0300)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 4 Aug 2022 21:38:09 +0000 (14:38 -0700)
commit1f7543c039f6b9eb182f0395965b9d414ac774c4
treea60c756badcd9e2a35bd32309ae50365cd7c24bb
parent5b9eca17cb981a08738e9d9ec3d6b91113daeb0e
xen/char: mvebu-uart: Fix MISRA C 2012 Rule 20.7 violation

The macro parameters 'off' and 'uart' are used as expressions and it is
good to be enclosed in parentheses to prevent against unintended expansion.

For the 'uart' case, in mvebu3700_write(), correct the second parentheses
that seems to have been accidently misplaced.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/char/mvebu-uart.c