Skip to content

Commit 1eb05a1

Browse files
adurangjhuber6
andauthored
Update offload/include/OffloadPolicy.h
Co-authored-by: Joseph Huber <[email protected]>
1 parent df25852 commit 1eb05a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

offload/include/OffloadPolicy.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ class OffloadPolicy {
5353

5454
public:
5555
static bool isOffloadDisabled() {
56-
if((kmp_target_offload_kind_t)__kmpc_get_target_offload() ==
57-
tgt_disabled) {
58-
return true;
59-
}
60-
return false;
56+
return static_cast<kmp_target_offload_kind_t>(__kmpc_get_target_offload()) == tgt_disabled);
6157
}
6258

6359
static const OffloadPolicy &get(PluginManager &PM) {

0 commit comments

Comments
 (0)