1
0
Fork 0
forked from nuttx/nuttx-update

drivers: remove redundant parentheses

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-07-31 20:43:55 +02:00 committed by Xiang Xiao
parent f00c6d3047
commit f3b5465969
2 changed files with 9 additions and 9 deletions

View file

@ -246,7 +246,7 @@ static int fxos8700cq_open(FAR struct file *filep)
if (ret < 0)
{
snerr("ERROR: %02x\n", regval);
return (ret);
return ret;
}
/* m_hms[1:0]: Hybrid mode, both accelerometer and magnetometer
@ -266,7 +266,7 @@ static int fxos8700cq_open(FAR struct file *filep)
ret = fxos8700cq_putreg8(priv, FXOS8700CQ_M_CTRL_REG1, regval);
if (ret < 0)
{
return (ret);
return ret;
}
/* hyb_autoinc_mode */
@ -275,7 +275,7 @@ static int fxos8700cq_open(FAR struct file *filep)
ret = fxos8700cq_putreg8(priv, FXOS8700CQ_M_CTRL_REG2, regval);
if (ret < 0)
{
return (ret);
return ret;
}
/* fs[1:0]: Accelerometer full-scale range : 4G */
@ -284,7 +284,7 @@ static int fxos8700cq_open(FAR struct file *filep)
ret = fxos8700cq_putreg8(priv, FXOS8700CQ_XYZ_DATA_CFG, regval);
if (ret < 0)
{
return (ret);
return ret;
}
/* active , lnoise , dr[2:0] */
@ -296,7 +296,7 @@ static int fxos8700cq_open(FAR struct file *filep)
ret = fxos8700cq_putreg8(priv, FXOS8700CQ_CTRL_REG1, regval);
if (ret < 0)
{
return (ret);
return ret;
}
return OK;
@ -319,7 +319,7 @@ static int fxos8700cq_close(FAR struct file *filep)
int ret = fxos8700cq_putreg8(priv, FXOS8700CQ_CTRL_REG1, regval);
if (ret < 0)
{
return (ret);
return ret;
}
return OK;

View file

@ -59,9 +59,9 @@
# define CONFIG_ADC_NPOLLWAITERS 2
#endif
#define ADC_RESET(dev) ((dev)->ad_ops->ao_reset((dev)))
#define ADC_SETUP(dev) ((dev)->ad_ops->ao_setup((dev)))
#define ADC_SHUTDOWN(dev) ((dev)->ad_ops->ao_shutdown((dev)))
#define ADC_RESET(dev) ((dev)->ad_ops->ao_reset(dev))
#define ADC_SETUP(dev) ((dev)->ad_ops->ao_setup(dev))
#define ADC_SHUTDOWN(dev) ((dev)->ad_ops->ao_shutdown(dev))
#define ADC_RXINT(dev,enable) ((dev)->ad_ops->ao_rxint((dev),(enable)))
#define ADC_IOCTL(dev,cmd,arg) ((dev)->ad_ops->ao_ioctl((dev),(cmd),(arg)))