Commit 1934f6aa authored by Herve Codina's avatar Herve Codina Committed by Christophe Leroy

soc: fsl: cpm1: qmc: Remove unneeded parenthesis

checkpatch.pl raises the following issue in several places
  CHECK: Unnecessary parenthesis around ...

Remove them.
Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20240808071132.149251-21-herve.codina@bootlin.comSigned-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
parent f06ab938
...@@ -359,8 +359,8 @@ int qmc_chan_set_param(struct qmc_chan *chan, const struct qmc_chan_param *param ...@@ -359,8 +359,8 @@ int qmc_chan_set_param(struct qmc_chan *chan, const struct qmc_chan_param *param
switch (param->mode) { switch (param->mode) {
case QMC_HDLC: case QMC_HDLC:
if ((param->hdlc.max_rx_buf_size % 4) || if (param->hdlc.max_rx_buf_size % 4 ||
(param->hdlc.max_rx_buf_size < 8)) param->hdlc.max_rx_buf_size < 8)
return -EINVAL; return -EINVAL;
qmc_write16(chan->qmc->scc_pram + QMC_GBL_MRBLR, qmc_write16(chan->qmc->scc_pram + QMC_GBL_MRBLR,
...@@ -1152,7 +1152,7 @@ static int qmc_check_chans(struct qmc *qmc) ...@@ -1152,7 +1152,7 @@ static int qmc_check_chans(struct qmc *qmc)
if (ret) if (ret)
return ret; return ret;
if ((info.nb_tx_ts > 64) || (info.nb_rx_ts > 64)) { if (info.nb_tx_ts > 64 || info.nb_rx_ts > 64) {
dev_err(qmc->dev, "Number of TSA Tx/Rx TS assigned not supported\n"); dev_err(qmc->dev, "Number of TSA Tx/Rx TS assigned not supported\n");
return -EINVAL; return -EINVAL;
} }
...@@ -1161,7 +1161,7 @@ static int qmc_check_chans(struct qmc *qmc) ...@@ -1161,7 +1161,7 @@ static int qmc_check_chans(struct qmc *qmc)
* If more than 32 TS are assigned to this serial, one common table is * If more than 32 TS are assigned to this serial, one common table is
* used for Tx and Rx and so masks must be equal for all channels. * used for Tx and Rx and so masks must be equal for all channels.
*/ */
if ((info.nb_tx_ts > 32) || (info.nb_rx_ts > 32)) { if (info.nb_tx_ts > 32 || info.nb_rx_ts > 32) {
if (info.nb_tx_ts != info.nb_rx_ts) { if (info.nb_tx_ts != info.nb_rx_ts) {
dev_err(qmc->dev, "Number of TSA Tx/Rx TS assigned are not equal\n"); dev_err(qmc->dev, "Number of TSA Tx/Rx TS assigned are not equal\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment