diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2016-05-01 00:06:27 +1000 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2016-05-01 00:06:27 +1000 |
commit | 991ca8eee2c13e39b8c53def35249ff9cb4e93fe (patch) | |
tree | e08a6b2e705119b8182cd6208a1daebc76d45823 /drivers/gpu/drm/amd/amdkfd/kfd_events.c | |
parent | b89359bdf0f1e95a4c5f92300594ba9dde323fc4 (diff) | |
download | op-kernel-dev-991ca8eee2c13e39b8c53def35249ff9cb4e93fe.zip op-kernel-dev-991ca8eee2c13e39b8c53def35249ff9cb4e93fe.tar.gz |
amdkfd: Use the canonical form in branch predicates
Found-By: Coccinelle
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_events.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c index b6e28dc..a6a4b2b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c @@ -177,9 +177,9 @@ static bool allocate_event_notification_slot(struct file *devkfd, bool ret; ret = allocate_free_slot(p, page, signal_slot_index); - if (ret == false) { + if (!ret) { ret = allocate_signal_page(devkfd, p); - if (ret == true) + if (ret) ret = allocate_free_slot(p, page, signal_slot_index); } |