summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorEduardo Barretto <edusbarretto@gmail.com>2014-12-19 23:34:33 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 16:10:48 -0800
commit81980c16e27cc87c10265e7c62779ccabcaf456b (patch)
tree582d8f3fb9a780eda3ab50cfd53892a71a395360 /drivers/staging/wlan-ng
parentaa9895da3e2e6aa2674ffa54b3b927503cc47b49 (diff)
downloadlinux-stable-81980c16e27cc87c10265e7c62779ccabcaf456b.tar.gz
linux-stable-81980c16e27cc87c10265e7c62779ccabcaf456b.tar.bz2
linux-stable-81980c16e27cc87c10265e7c62779ccabcaf456b.zip
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>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/hfa384x_usb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 55d2f563e308..de33a07904f2 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -4123,12 +4123,11 @@ static int hfa384x_isgood_pdrcode(u16 pdrcode)
pr_debug("Encountered unknown PDR#=0x%04x, assuming it's ok.\n",
pdrcode);
return 1;
- } else {
- /* bad code */
- pr_debug("Encountered unknown PDR#=0x%04x, (>=0x1000), assuming it's bad.\n",
- pdrcode);
- return 0;
}
+ break;
}
- return 0; /* avoid compiler warnings */
+ /* bad code */
+ pr_debug("Encountered unknown PDR#=0x%04x, (>=0x1000), assuming it's bad.\n",
+ pdrcode);
+ return 0;
}