Staging: rtl8192u: Simplify error check code at prism2_wep_init
authorPedro Marzo Perez <marzo.pedro@gmail.com>
Tue, 2 Jun 2015 23:28:38 +0000 (01:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 20:40:55 +0000 (13:40 -0700)
commit251ae75c69c427149ab0f70b12a436144edd81b1
treea5d89b06bccecc5c79b80676468525ee9893776d
parentbf95628e61c373f2e614b507718fa90b7490fbdb
Staging: rtl8192u: Simplify error check code at prism2_wep_init

Simplify prism2_wep_init error check code employing goto when a failure is detected.
Removed pr_debug which was given a checkpatch.pl error because of literal string
 splitted across two lines of code, it was seldom going to be printed anyway.

Signed-off-by: Pedro Marzo Perez <marzo.pedro@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c