]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: offload: remove unnecessary check on trigger->ops
authorAndres Urian Florez <andres.emb.sys@gmail.com>
Fri, 18 Apr 2025 17:14:24 +0000 (12:14 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 21 Apr 2025 16:22:30 +0000 (17:22 +0100)
commit296e8d289bdd7eb0d832683ebd3e847fbb4c1b12
treec330398631777a873468836912f3eaa2eeaa1f74
parentfcab1637bb115b3b7bbc600a6d019b785653f2d5
spi: offload: remove unnecessary check on trigger->ops

Considering that trigger->ops = NULL happens only when the trigger is
being removed from the list, and at that point the operation is protected
with the spi_offload_triggers_lock, it is possible to remove the
!trigger->ops check because it will never be true in
spi_offload_trigger_get()

Signed-off-by: Andres Urian Florez <andres.emb.sys@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250418171426.9868-1-andres.emb.sys@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-offload.c