staging: wfx: avoid double warning when no more tx policy are available
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:14:44 +0000 (16:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:55:57 +0000 (15:55 +0100)
commit88d54d6e15df476110e38b390862b7c8defb63d0
tree44400ac3a2c0adaf340d073af7d4cdc16ced1069
parentb025605cc4462b482db8e75dcb5019fa9a016b29
staging: wfx: avoid double warning when no more tx policy are available

Currently, number of available tx retry policies is checked two times.
Only one is sufficient.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-14-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/data_tx.c