]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vchiq_core: avoid ternary operator for set_service_state
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 23 Jan 2022 20:02:18 +0000 (21:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:30:16 +0000 (16:30 +0100)
commit76f23f5b4faff547b44455a2a73939fd652c2e99
treea02f1c3bc5d79497840f8be3c3c00a74ab36b8dd
parentb0e8aca1fe62d6be9b0d67feab136a1c3820ba81
staging: vchiq_core: avoid ternary operator for set_service_state

There is already a check for service->sync, so use this instead of a
separate ternary operator to update the service state.

Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1642968143-19281-14-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c