Skip to content

Commit

Permalink
staging: tidspbridge: remove redundant NULL check before delete_msg_m…
Browse files Browse the repository at this point in the history
…gr().

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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Steap authored and gregkh committed Feb 13, 2013
1 parent ae87d63 commit b7e6724
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/tidspbridge/core/msg_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit b7e6724

Please sign in to comment.