diff options
| author | Achal Verma <achalv@nvidia.com> | 2021-05-11 03:46:28 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-08-12 15:24:39 -0400 |
| commit | c89e76cc79bf5fcc9fd027e172028f3d08d3cfa0 (patch) | |
| tree | 2dcf4d9156c87053bffd6a295571c51b66f3d245 | |
| parent | ab7339696cbb40b7fd9c8ebe429462d615fc1701 (diff) | |
tegra-uart: Fix redundant expression.
This fix coverity issue : 2886348
Bug 200741055
Change-Id: I92e926400cbb3361bc312660e2193bcbec5265e5
Signed-off-by: Achal Verma <achalv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2527642
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com>
Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com>
GVS: Gerrit_Virtual_Submit
(cherry picked from commit 49031c7477ae4c4a59ad9e433e6be2839193c4ea)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2574543
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Phoenix Jung <pjung@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
| -rw-r--r-- | drivers/tty/serial/tegra-combined-uart-early.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/tegra-combined-uart-early.c b/drivers/tty/serial/tegra-combined-uart-early.c index 57ad4f974..0e7e1fefb 100644 --- a/drivers/tty/serial/tegra-combined-uart-early.c +++ b/drivers/tty/serial/tegra-combined-uart-early.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. |
| 3 | * | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | static u32 update_and_send_mbox(u8 __iomem *addr, u32 mbox_val, char c) | 25 | static u32 update_and_send_mbox(u8 __iomem *addr, u32 mbox_val, char c) |
| 26 | { | 26 | { |
| 27 | int bytes = bytes = (mbox_val >> NUM_BYTES_FIELD_BIT) & 0x3; | 27 | int bytes = (mbox_val >> NUM_BYTES_FIELD_BIT) & 0x3; |
| 28 | 28 | ||
| 29 | mbox_val |= BIT(INTR_TRIGGER_BIT); | 29 | mbox_val |= BIT(INTR_TRIGGER_BIT); |
| 30 | mbox_val |= c << (bytes * 8); | 30 | mbox_val |= c << (bytes * 8); |
