]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay.c: Convert comparisons to zero or NULL to logical expressions
authorFrank Rowand <frank.rowand@sony.com>
Tue, 17 Oct 2017 23:36:22 +0000 (16:36 -0700)
committerRob Herring <robh@kernel.org>
Wed, 18 Oct 2017 01:46:15 +0000 (20:46 -0500)
commit868422e8f74aac12f8f3276de347975684d7a70c
tree3a268571f05b0c7482986afd0d441578be92acb3
parent2de8c64c563949501c13fe288ef9bfa572bfd5f1
of: overlay.c: Convert comparisons to zero or NULL to logical expressions

Use normal shorthand for comparing a variable to zero.
For variable "XXX":
   convert (XXX == 0) to (!XXX)
   convert (XXX != 0) to (XXX)

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/overlay.c