mailbox: ti-msgmgr: Remove redundant logical check
Remove redundant WARN_ON(!inst) check as container_of will always calculate the address of ti_msgmgr_inst if *mbox is valid. The indicated dead code may have performed some action; that action will never occur.
Signed-off-by Advait Dhamorikar <[email protected]>
--- drivers/mailbox/ti-msgmgr.c | 2 -- 1 file changed, 2 deletions(-)
drivers/mailbox/ti-msgmgr.c +0 -2
@@ -580,8 +580,6 @@ static struct mbox_chan *ti_msgmgr_of_xlate(struct mbox_controller *mbox,int i, ncells; inst = container_of(mbox, struct ti_msgmgr_inst, mbox); -if (WARN_ON (!inst)) -return ERR_PTR (-EINVAL ); d = inst->desc;
Signature · 1 line
2.34.1