From 86b4dd43b02b2faeef3ee1168785e636f36cdf02 Mon Sep 17 00:00:00 2001 From: Josarn Date: Fri, 6 Jul 2018 13:10:02 +0200 Subject: [PATCH] at86rfr2xx: NETOPT_CSMA_RETRIES parenthesis Reorder parenthesis to improve readability. --- drivers/at86rf2xx/at86rf2xx_netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/at86rf2xx/at86rf2xx_netdev.c b/drivers/at86rf2xx/at86rf2xx_netdev.c index fd72436691..24a959227b 100644 --- a/drivers/at86rf2xx/at86rf2xx_netdev.c +++ b/drivers/at86rf2xx/at86rf2xx_netdev.c @@ -545,8 +545,8 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *val, size_t len) case NETOPT_CSMA_RETRIES: assert(len <= sizeof(uint8_t)); - if (!(dev->netdev.flags & AT86RF2XX_OPT_CSMA || - (*((uint8_t *)val) > 5))) { + if (!(dev->netdev.flags & AT86RF2XX_OPT_CSMA) || + (*((uint8_t *)val) > 5)) { /* If CSMA is disabled, don't allow setting retries */ res = -EINVAL; }