aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2019-04-06 11:45:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 13:15:53 +0200
commit8136eaa012c4011bf6df32834899bdec8f2cafdf (patch)
treea748e337a9a5c311c1687352e55955dcbf86d936 /drivers/staging/wilc1000
parentstaging: comedi: adv_pci1710: fix spelling mistake: "droput" -> "dropout" (diff)
downloadlinux-dev-8136eaa012c4011bf6df32834899bdec8f2cafdf.tar.xz
linux-dev-8136eaa012c4011bf6df32834899bdec8f2cafdf.zip
staging: wilc1000: drop explicit conversion to bool
As the expression evaluates to a boolean anyway (relational and logical operators) conversion with the ternary operator is not needed here as coccinelle notes (boolconv.cocci) Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Reviewed-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index c2389695fe20..f5443dea3a09 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -11,7 +11,7 @@
static inline bool is_wilc1000(u32 id)
{
- return ((id & 0xfffff000) == 0x100000 ? true : false);
+ return (id & 0xfffff000) == 0x100000;
}
static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire)