Commit 81980c16 authored by Eduardo Barretto's avatar Eduardo Barretto Committed by Greg Kroah-Hartman

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: default avatarEduardo Barretto <edusbarretto@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aa9895da
...@@ -4123,12 +4123,11 @@ static int hfa384x_isgood_pdrcode(u16 pdrcode) ...@@ -4123,12 +4123,11 @@ static int hfa384x_isgood_pdrcode(u16 pdrcode)
pr_debug("Encountered unknown PDR#=0x%04x, assuming it's ok.\n", pr_debug("Encountered unknown PDR#=0x%04x, assuming it's ok.\n",
pdrcode); pdrcode);
return 1; return 1;
} else { }
break;
}
/* bad code */ /* bad code */
pr_debug("Encountered unknown PDR#=0x%04x, (>=0x1000), assuming it's bad.\n", pr_debug("Encountered unknown PDR#=0x%04x, (>=0x1000), assuming it's bad.\n",
pdrcode); pdrcode);
return 0; return 0;
}
}
return 0; /* avoid compiler warnings */
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment