summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_spi.c
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2018-04-25 22:48:08 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-26 09:43:04 +0200
commitbb87c84cd9c98714dde1977a6deaf4e0f1265b54 (patch)
tree292552f66874176ccf7b6049d4a3efd3bc6cd3f7 /drivers/staging/wilc1000/wilc_spi.c
parent1e194027ad1a25f0c799c8d791c317b1bfc16a17 (diff)
staging: wilc1000: remove unnecessary assingment from 'if' conditions
Cleanup patch to remove the unnecessary use of '==' check used in if conditions. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_spi.c')
-rw-r--r--drivers/staging/wilc1000/wilc_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index b7fb08fffea0..417d6b6b5fea 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -1026,10 +1026,10 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val)
tbl_ctl = 0;
/* select VMM table 0 */
- if ((val & SEL_VMM_TBL0) == SEL_VMM_TBL0)
+ if (val & SEL_VMM_TBL0)
tbl_ctl |= BIT(0);
/* select VMM table 1 */
- if ((val & SEL_VMM_TBL1) == SEL_VMM_TBL1)
+ if (val & SEL_VMM_TBL1)
tbl_ctl |= BIT(1);
ret = wilc_spi_write_reg(wilc, WILC_VMM_TBL_CTL, tbl_ctl);
@@ -1038,7 +1038,7 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val)
return ret;
}
- if ((val & EN_VMM) == EN_VMM) {
+ if (val & EN_VMM) {
/*
* enable vmm transfer.
*/