]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: wlan-ng: hfa384x_usb: fixed an 'else' statement coding style issue
authorEduardo Barretto <edusbarretto@gmail.com>
Sat, 20 Dec 2014 01:34:33 +0000 (23:34 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Jan 2015 00:10:48 +0000 (16:10 -0800)
commitdf4ad54ed8a14935ca67510e64e205c3897da775
tree582d8f3fb9a780eda3ab50cfd53892a71a395360
parent659be63a794499945dfd9cfb31074a2237f2bf29
Staging: wlan-ng: hfa384x_usb: fixed an 'else' statement coding style issue

Removed useless 'else' statement that followed an 'if' statement that
had a return 1 and moved all the content from the 'else' to outside of
the switch case, this way if any case is sufficient it returns '1',
otherwise it will return 0.

Signed-off-by: Eduardo Barretto <edusbarretto@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c