9f129146ff
Except for the added (and sorted) includes, and the removal of redundant parentheses, and one special case, this patch can be approximated with the following semantic patch: $ cat ~/tmp/spatch/strneq.sp; @@ expression a, b; @@ - strcmp(a, b) != 0 + !streq(a, b) @@ expression a, b; @@ - 0 != strcmp(a, b) + !streq(a, b) $ find contrib/ lib* src/ -type f \ | xargs spatch --sp-file ~/tmp/spatch/strneq.sp --in-place; Signed-off-by: Alejandro Colomar <alx@kernel.org>
15 KiB
15 KiB