瀏覽代碼

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>
Cyril Roelandt 12 年之前
父節點
當前提交
b7e6724238
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/staging/tidspbridge/core/msg_sm.c

+ 1 - 2
drivers/staging/tidspbridge/core/msg_sm.c

@@ -198,8 +198,7 @@ out_err:
  */
  */
 void bridge_msg_delete(struct msg_mgr *hmsg_mgr)
 void bridge_msg_delete(struct msg_mgr *hmsg_mgr)
 {
 {
-	if (hmsg_mgr)
-		delete_msg_mgr(hmsg_mgr);
+	delete_msg_mgr(hmsg_mgr);
 }
 }
 
 
 /*
 /*