mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
of: property: Drop superfluous !!
When assigning a pointer or integral value to a boolean, there is no need to insert a double logical inversion, as the assignment already takes care of the conversion. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/d32521ecddc0df9de1c5f21edb7935f7f543590f.1788426412.git.geert+renesas@glider.be Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
parent
6b91b2fdc3
commit
a64ec0aefc
|
|
@ -74,7 +74,7 @@ bool of_graph_is_present(const struct device_node *node)
|
|||
|
||||
struct device_node *port __free(device_node) = of_get_child_by_name(node, "port");
|
||||
|
||||
return !!port;
|
||||
return port;
|
||||
}
|
||||
EXPORT_SYMBOL(of_graph_is_present);
|
||||
|
||||
|
|
@ -1659,12 +1659,12 @@ static bool of_is_fwnode_add_links_supported(void)
|
|||
return true;
|
||||
|
||||
if (is_supported != -1)
|
||||
return !!is_supported;
|
||||
return is_supported;
|
||||
|
||||
is_supported = !((match_property_by_path("/soc", "compatible", "intel,ce4100-cp") >= 0) ||
|
||||
(match_property_by_path("/", "architecture", "OLPC") >= 0));
|
||||
|
||||
return !!is_supported;
|
||||
return is_supported;
|
||||
}
|
||||
|
||||
static int of_fwnode_add_links(struct fwnode_handle *fwnode)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user