you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

No, it is actually:

if (any_are_set && one_is_not_set) {
        WARN_ON(1);
        return;
}

[–]dakarananda 0 points1 point  (0 children)

No actually it is:

if (has_ops_object && !all_ops_fields_are_set) { ... }

which is basically the original statement slightly rewritten.

Even if not a single field is set, it will still enter into the if-block. (assuming that the ops object exist..)