mirror of https://gitee.com/openkylin/linux.git
staging: tidspbridge: remove redundant NULL check before delete_msg_mgr().
delete_msg_mgr on a NULL pointer is a no-op, so the NULL check in bridge_msg_delete can be removed. Signed-off-by: Cyril Roelandt <tipecaml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae87d63664
commit
b7e6724238
|
@ -198,8 +198,7 @@ int bridge_msg_create_queue(struct msg_mgr *hmsg_mgr, struct msg_queue **msgq,
|
|||
*/
|
||||
void bridge_msg_delete(struct msg_mgr *hmsg_mgr)
|
||||
{
|
||||
if (hmsg_mgr)
|
||||
delete_msg_mgr(hmsg_mgr);
|
||||
delete_msg_mgr(hmsg_mgr);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue