From: Alexander Aring Date: Wed, 12 Nov 2014 02:37:00 +0000 (+0100) Subject: at86rf230: remove invalid backoff exponent check X-Git-Tag: v3.19-rc1~32^2~17^2~6^2~157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8d352d458bba4603abd996e541c7f206a101f26;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git at86rf230: remove invalid backoff exponent check This patch removes the invalid backoff exponent check from driver layer. This is already handled by nl802154. Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index f9e3bce..05d4f8f 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -1167,7 +1167,7 @@ at86rf230_set_csma_params(struct ieee802154_hw *hw, u8 min_be, u8 max_be, struct at86rf230_local *lp = hw->priv; int rc; - if (min_be > max_be || max_be > 8 || retries > 5) + if (retries > 5) return -EINVAL; rc = at86rf230_write_subreg(lp, SR_MIN_BE, min_be);