Skip to content

Commit ce16dd0

Browse files
committed
se: Fix Wbool-conversion warning in find_generic_rule_for_hash()
find_generic_rule_for_hash() returns pointer, so obviously 'return false' is just confusingly stupid. Newer clang (e.g. on ArchLinux) also complains: se/ace.c:748:10: error: initialization of pointer of type 'struct seel_ace_rule *' to null from a constant boolean expression [-Werror,-Wbool-conversion] Fixes: 1be05e6 ("se: Initial commit") Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
1 parent 7f8773d commit ce16dd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

se/ace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ static struct seel_ace_rule *find_generic_rule_for_hash(struct seel_ace *ace,
745745
DBG("");
746746

747747
if (!hash)
748-
return false;
748+
return NULL;
749749

750750
for (list = ace->rules; list; list = list->next) {
751751
struct seel_ace_rule *rule = list->data;

0 commit comments

Comments
 (0)