staging: vt6656: add error code handling to unused variable
authorJohn B. Wyatt IV <jbwyatt4@gmail.com>
Mon, 30 Mar 2020 23:39:00 +0000 (16:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:28 +0000 (08:55 +0200)
commitafa2e976b152ae27a6c8d1d7e4b81b39354acd6d
treeb1cc0c30fa79fd887f17f457d65a4861fd231ffa
parent69a809e1569312b8a92a8cafee21b7cd01eddbbd
staging: vt6656: add error code handling to unused variable

Add error code handling to unused 'ret' variable that was never used.
Return an error code from functions called within vnt_radio_power_on.

Issue reported by coccinelle (coccicheck).

Suggested-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>
Suggested-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>
Signed-off-by: John B. Wyatt IV <jbwyatt4@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200330233900.36938-1-jbwyatt4@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c