Re: [PATCH net-next] nfc: st21nfca: Drop unneeded null check in st21nfca_tx_work()

From: Simon Horman
Date: Mon Jan 06 2025 - 11:05:06 EST


On Sat, Jan 04, 2025 at 03:20:43PM +0100, Krzysztof Kozlowski wrote:
> Variable 'info' is obtained via container_of() of struct work_struct, so
> it cannot be NULL. Simplify the code and solve Smatch warning:
>
> drivers/nfc/st21nfca/dep.c:119 st21nfca_tx_work() warn: can 'info' even be NULL?
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>