staging/rtl8187se: Remove temporary variable for return value
authorPeter Huewe <peterhuewe@gmx.de>
Wed, 13 Feb 2013 03:05:23 +0000 (04:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:28:37 +0000 (10:28 -0800)
commitaa341b6afab172b626f37b4ce6eff6d7485e400f
tree1033daf51bd08f395606d92089310af6bb5428e7
parent2c370d9512c4ea0929e87cb18a2308d9422a350a
staging/rtl8187se: Remove temporary variable for return value

The simple PlatformIORead1Byte function doesn't need to store its return
value in a temporary variable; rather simply return the value directly.

By moving the function to the top we can also get rid of the forward
declaration.

The wrapper functions could be easily replaced by direct calls to
read_nic_byte but is kept for readability.

Since this functions is local only we can mark it as static.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8185b_init.c