]> git.baikalelectronics.ru Git - kernel.git/commit
net: qca_spi: Avoid reading signature three times in a row
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 8 May 2021 12:36:33 +0000 (14:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:29:18 +0000 (14:29 -0700)
commitaa2cd622d0ac63c551c7cb7583575ff7e6818b0b
treec16605662796e6f0773a395ca056dcb70975f49c
parent494ea8c10f434ae5af3b89521b13d57ca275544a
net: qca_spi: Avoid reading signature three times in a row

There is no need to read the signature three times. So bail out
in case the second check failed.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c