staging: vt6656: Check the return values in vnt_set_bss_mode function
authorOscar Carter <oscar.carter@gmx.com>
Wed, 29 Apr 2020 15:23:06 +0000 (17:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:26:43 +0000 (12:26 +0200)
commit35452e10610617abd0e84389fa9271421bf6425d
treec07a010795bd7b126ddefa54729dfe2f9696f1ad
parent2eeefd3787fdc6319124945d453774be95b97897
staging: vt6656: Check the return values in vnt_set_bss_mode function

Check the return value of all the functions that return zero if
successful or a negative error code on failure inside the function
vnt_set_bss_mode.

Also, remove the unnecessary variable initialization as this variable is
set a few lines later.

Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200429152307.5871-2-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c