diff options
author | Zhao Qiang <B45475@freescale.com> | 2014-03-03 06:50:45 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-03-24 16:14:55 (GMT) |
commit | a8bdd3a03e07568e55e954e4a23821b03dadb6fe (patch) | |
tree | adcc83641245283d39caeb37e5eb57af78df2586 /drivers/tdm | |
parent | 7bffd108a60b0c5d1d339a33495c2a405d253d29 (diff) | |
download | linux-fsl-qoriq-a8bdd3a03e07568e55e954e4a23821b03dadb6fe.tar.xz |
qe-tdm/ucc: modify an "if conditions error"
There is an "if condition" uncorrect, modify it.
Signed-off-by: Zhao Qiang <B45475@freescale.com>
Change-Id: I5c3931a34e41c0eec34aead95254a37e919c45bb
Reviewed-on: http://git.am.freescale.net:8181/10097
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Xiaobo Xie <X.Xie@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/tdm')
-rw-r--r-- | drivers/tdm/device/fsl_ucc_tdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tdm/device/fsl_ucc_tdm.c b/drivers/tdm/device/fsl_ucc_tdm.c index 36e4299..0f6b7b3 100644 --- a/drivers/tdm/device/fsl_ucc_tdm.c +++ b/drivers/tdm/device/fsl_ucc_tdm.c @@ -773,7 +773,7 @@ static int ucc_tdm_probe(struct platform_device *pdev) } ucc_num = *prop - 1; - if ((ucc_num > 7) && (ucc_num < 0)) { + if ((ucc_num > 7) || (ucc_num < 0)) { dev_err(&pdev->dev, ": Invalid UCC num\n"); return -EINVAL; } |