]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: simplify wfx_tx_queue_mask_get()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Wed, 1 Apr 2020 11:03:44 +0000 (13:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:34 +0000 (08:55 +0200)
commit2258f191b9b674364e5e04d222fed5773ea198c3
treebf04e79da4fd2958486931035ee65a979aa99485
parente2a4b5233cf6838aa55e89d684cf44603a3ca497
staging: wfx: simplify wfx_tx_queue_mask_get()

It is far simpler to return a pointer instead of an error. Thus, it is
no more necessary to pass a pointer reference as argument.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200401110405.80282-12-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/queue.c