arch/xtensa/src/esp32/esp32_spiflash.c: Don't double check for direct

read mode.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2020-09-10 16:27:41 +01:00 committed by Matias N
parent 7b965a25d8
commit 6b6d983650
1 changed files with 1 additions and 10 deletions

View File

@ -425,16 +425,7 @@ static int esp32_read_status(FAR struct esp32_spiflash_s *priv,
esp32_spiflash_chip_t *chip = priv->chip;
uint32_t regval;
uint32_t flags;
bool direct = priv->dummies[1] == 0;
if (priv->dummies[1] == 0)
{
direct = true;
}
else
{
direct = false;
}
bool direct = (priv->dummies[1] == 0);
do
{