projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed2da9
)
soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk
author
Wang Hai
<wanghai38@huawei.com>
Tue, 4 Aug 2020 13:56:44 +0000
(21:56 +0800)
committer
Li Yang
<leoyang.li@nxp.com>
Tue, 22 Sep 2020 23:25:29 +0000
(18:25 -0500)
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>
drivers/soc/fsl/qe/ucc.c
patch
|
blob
|
history
diff --git
a/drivers/soc/fsl/qe/ucc.c
b/drivers/soc/fsl/qe/ucc.c
index
cac0fb7
..
21dbcd7
100644
(file)
--- 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 */