mailbox: omap: Remove mbox_chan_to_omap_mbox()
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 13:59:40 +0000 (08:59 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 20 May 2024 03:29:44 +0000 (22:29 -0500)
commit5aa00b68eadee64e1a6e95325f364511f37631d8
treeae131017237b97c9e802ed9e26a435f08141a246
parent34123b1a4add58b3af80e31a6df33f213c0afcaa
mailbox: omap: Remove mbox_chan_to_omap_mbox()

This function only checks if mbox_chan *chan is not NULL, but that cannot
be the case and if it was returning NULL which is not later checked
doesn't save us from this. The second check for chan->con_priv is
completely redundant as if it was NULL we would return NULL just the
same. Simply dereference con_priv directly and remove this function.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/omap-mailbox.c