aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2013-02-11 23:01:52 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-13 11:46:48 -0500
commitb7e6724238409d0985dcf7219dd9eb0a1f58e7e5 (patch)
tree156ba61c68fde0aaa7fe678977b9863f2500d23a
parentae87d63664721c9022ad709077de82b02b8227ca (diff)
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>
-rw-r--r--drivers/staging/tidspbridge/core/msg_sm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/tidspbridge/core/msg_sm.c b/drivers/staging/tidspbridge/core/msg_sm.c
index ce9557e16eb0..7b517eb827fe 100644
--- a/drivers/staging/tidspbridge/core/msg_sm.c
+++ b/drivers/staging/tidspbridge/core/msg_sm.c
@@ -198,8 +198,7 @@ out_err:
198 */ 198 */
199void bridge_msg_delete(struct msg_mgr *hmsg_mgr) 199void bridge_msg_delete(struct msg_mgr *hmsg_mgr)
200{ 200{
201 if (hmsg_mgr) 201 delete_msg_mgr(hmsg_mgr);
202 delete_msg_mgr(hmsg_mgr);
203} 202}
204 203
205/* 204/*