summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-08-04 15:56:44 +0200
committerLi Yang <leoyang.li@nxp.com>2020-09-23 01:25:29 +0200
commitd97b957e32b1e7527a9b6652fa6e795f2861df7d (patch)
tree3ddfab298ce821ace417bb65177d06f21e569ace
parentsoc: fsl: qman: convert to use be32_add_cpu() (diff)
downloadlinux-d97b957e32b1e7527a9b6652fa6e795f2861df7d.tar.xz
linux-d97b957e32b1e7527a9b6652fa6e795f2861df7d.zip
soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk
Fix smatch warning: drivers/soc/fsl/qe/ucc.c:526 ucc_set_tdm_rxtx_clk() warn: unsigned 'tdm_num' is never less than zero. 'tdm_num' is u32 type, never less than zero. Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
-rw-r--r--drivers/soc/fsl/qe/ucc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qe/ucc.c b/drivers/soc/fsl/qe/ucc.c
index cac0fb7693a0..21dbcd787cd5 100644
--- a/drivers/soc/fsl/qe/ucc.c
+++ b/drivers/soc/fsl/qe/ucc.c
@@ -523,7 +523,7 @@ int ucc_set_tdm_rxtx_clk(u32 tdm_num, enum qe_clock clock,
qe_mux_reg = &qe_immr->qmx;
- if (tdm_num > 7 || tdm_num < 0)
+ if (tdm_num > 7)
return -EINVAL;
/* The communications direction must be RX or TX */