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:
parent
7b965a25d8
commit
6b6d983650
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue