staging: wfx: drop calls to BUG_ON()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 8 Oct 2019 09:43:01 +0000 (09:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2019 12:44:56 +0000 (14:44 +0200)
commitb5be2aa3b3ac153f056f93406c520dc74a1cebbe
tree97bd40357c828e475d64c31e63432bb05d4f7781
parent51f589c82f6d4b3c9e417b39141836fb3db86093
staging: wfx: drop calls to BUG_ON()

Most of calls to BUG_ON() could replaced by WARN().

By the way, this patch also try to favor WARN() (that include a comment
about the problem) instead of WARN_ON().

Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191008094232.10014-7-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/bh.c
drivers/staging/wfx/bus_sdio.c
drivers/staging/wfx/data_tx.c
drivers/staging/wfx/hif_tx_mib.h
drivers/staging/wfx/key.c
drivers/staging/wfx/queue.c
drivers/staging/wfx/scan.c
drivers/staging/wfx/sta.c