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

Simon Horman
2025-01-06T16:03:51Z

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@linaro.org>

Reviewed-by: Simon Horman <horms@kernel.org>