OSDN Git Service

staging: rtl8712: Remove while loop and check_cmd_fifo()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Thu, 8 Aug 2019 06:40:11 +0000 (12:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Aug 2019 17:58:15 +0000 (19:58 +0200)
commit1c8a4f7c84dcb187c076a87e716912053f6ad6ba
treea9372dcafc855cf727b6ec02d0b53c15446f1e88
parent02433a24fe71ba31b8392c2bf98ff9e8a2bce3b6
staging: rtl8712: Remove while loop and check_cmd_fifo()

Remove while loop as it only runs while the function check_cmd_fifo
returns _FAIL, whereas check_cmd_fifo always returns _SUCCESS (and hence
this loop will never run).
Remove now unused function check_cmd_fifo.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190808064012.12661-9-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_cmd.c