diff mbox series

spi: spi-bcm-qspi: style: Simplify bool comparison

Message ID 1610358888-88876-1-git-send-email-abaci-bugfix@linux.alibaba.com
State Accepted
Commit 6650ab2a44268af8d24995d28ae199b57b2ebff8
Headers show
Series spi: spi-bcm-qspi: style: Simplify bool comparison | expand

Commit Message

Abaci Team Jan. 11, 2021, 9:54 a.m. UTC
Fix the following coccicheck warning:
./drivers/spi/spi-bcm-qspi.c:884:5-34:
WARNING: Comparison to bool

Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com>
Reported-by: Abaci Robot<abaci@linux.alibaba.com>
---
 drivers/spi/spi-bcm-qspi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c
index c028446..d28d7bd 100644
--- a/drivers/spi/spi-bcm-qspi.c
+++ b/drivers/spi/spi-bcm-qspi.c
@@ -881,7 +881,7 @@  static int bcm_qspi_bspi_exec_mem_op(struct spi_device *spi,
 	 * when using flex mode we need to send
 	 * the upper address byte to bspi
 	 */
-	if (bcm_qspi_bspi_ver_three(qspi) == false) {
+	if (!bcm_qspi_bspi_ver_three(qspi)) {
 		addr = from & 0xff000000;
 		bcm_qspi_write(qspi, BSPI,
 			       BSPI_BSPI_FLASH_UPPER_ADDR_BYTE, addr);
@@ -892,7 +892,7 @@  static int bcm_qspi_bspi_exec_mem_op(struct spi_device *spi,
 	else
 		addr = from & 0x00ffffff;
 
-	if (bcm_qspi_bspi_ver_three(qspi) == true)
+	if (bcm_qspi_bspi_ver_three(qspi))
 		addr = (addr + 0xc00000) & 0xffffff;
 
 	/*