staging: vt6656: Remove duplicate code in vnt_rf_table_download
authorOscar Carter <oscar.carter@gmx.com>
Sat, 25 Apr 2020 15:17:47 +0000 (17:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 12:26:29 +0000 (14:26 +0200)
commit10b674be0a0c8a2a819c69786b07e76ab141e7c0
tree83840f4b6d7052165be5cd3ff460c306c723422e
parentd78b62c3eaf257dfb114f579c797a4777e3f45d4
staging: vt6656: Remove duplicate code in vnt_rf_table_download

Replace three while loops with three calls to the vnt_control_out_blocks
function. This way avoid repeat a functionality that already exists.

Also remove the variables that now are not used.

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