summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2013-02-12 05:01:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-13 08:46:48 -0800
commitb7e6724238409d0985dcf7219dd9eb0a1f58e7e5 (patch)
tree156ba61c68fde0aaa7fe678977b9863f2500d23a /drivers
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>
Diffstat (limited to 'drivers')
-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:
*/
void bridge_msg_delete(struct msg_mgr *hmsg_mgr)
{
- if (hmsg_mgr)
- delete_msg_mgr(hmsg_mgr);
+ delete_msg_mgr(hmsg_mgr);
}
/*