Skip to content

Commit d97b957

Browse files
Wang HaiLi Yang
authored andcommitted
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>
1 parent 5ed2da9 commit d97b957

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/fsl/qe/ucc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ int ucc_set_tdm_rxtx_clk(u32 tdm_num, enum qe_clock clock,
523523

524524
qe_mux_reg = &qe_immr->qmx;
525525

526-
if (tdm_num > 7 || tdm_num < 0)
526+
if (tdm_num > 7)
527527
return -EINVAL;
528528

529529
/* The communications direction must be RX or TX */

0 commit comments

Comments
 (0)