Skip to content

Commit

Permalink
checkpolicy: drop redundant cast to the same type
Browse files Browse the repository at this point in the history
Found by clang-tidy.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
  • Loading branch information
cgzones authored and fishilico committed Jul 13, 2021
1 parent 5218bf4 commit 4e3d099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpolicy/policy_define.c
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ int define_bool_tunable(int is_tunable)
return -1;
}

datum->state = (int)(bool_value[0] == 'T') ? 1 : 0;
datum->state = (bool_value[0] == 'T') ? 1 : 0;
free(bool_value);
return 0;
cleanup:
Expand Down

0 comments on commit 4e3d099

Please sign in to comment.