]> www.infradead.org Git - nvme.git/commit
mailbox: Use of_property_match_string() instead of open-coding
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 20:16:08 +0000 (14:16 -0600)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 23 Sep 2024 00:19:17 +0000 (19:19 -0500)
commit263dbd3cc88da7ea7413494eea66418b4f1b2e6d
tree321ba34a40c2c64c57c2faa0113daecb283d1310
parentdc09f007caed3b2f6a3b6bd7e13777557ae22bfd
mailbox: Use of_property_match_string() instead of open-coding

Use of_property_match_string() instead of open-coding the search. With
this, of_get_property() can be removed as there is no need to check for
"mbox-names" presence first.

This is part of a larger effort to remove callers of of_get_property()
and similar functions. of_get_property() leaks the DT property data
pointer which is a problem for dynamically allocated nodes which may
be freed.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/mailbox.c