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)
commitb76078df15935b54c353eb0461c95a6eaf73c7ca
treec16605662796e6f0773a395ca056dcb70975f49c
parent48de7c0c1c9225b478c602184be8e00b92b35c61
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