diff options
author | Chris Park <chris.park@atmel.com> | 2016-02-04 18:15:54 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 17:34:58 -0800 |
commit | 65c3f000133ae375f34772d5e59f8aee28fbac9a (patch) | |
tree | f228eb4f81258ac61304600e30e54ff5cf45dee0 /drivers/staging/wilc1000/wilc_wlan_if.h | |
parent | 20f4e712d1a9c2efce20d5345cc1a4bf7070852b (diff) | |
download | op-kernel-dev-65c3f000133ae375f34772d5e59f8aee28fbac9a.zip op-kernel-dev-65c3f000133ae375f34772d5e59f8aee28fbac9a.tar.gz |
staging: wilc1000: Optimize code of wilc_get_chipid function
This patch optimize code of wilc_get_chipid function.
u8 type changed to boolean type and removed unnecessary if statement.
Signed-off-by: Chris Park <chris.park@atmel.com>
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan_if.h')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan_if.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index 294552d..269c56e 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -921,6 +921,6 @@ struct wilc; int wilc_wlan_init(struct net_device *dev); void wilc_bus_set_max_speed(void); void wilc_bus_set_default_speed(void); -u32 wilc_get_chipid(struct wilc *wilc, u8 update); +u32 wilc_get_chipid(struct wilc *wilc, bool update); #endif |