qca_spi: Improve SPI thread creation
authorStefan Wahren <wahrenst@gmx.net>
Sun, 28 Jan 2024 20:10:46 +0000 (21:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2024 13:38:50 +0000 (13:38 +0000)
commit1a10d67ca426f6f5a76fbb81270d4ad1b44d3950
treefbf06fbab712474b27da6c2370edb5608f2f1331
parentc494a01abe01fcfcbbcd849023ce06a573963aed
qca_spi: Improve SPI thread creation

Directly storing the result of kthread_run within the private
driver data makes it harder to identify if the pointer has a
running thread or not. So better use a local variable for
the result check and we don't have to care about error pointer
in the rest of the code.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c