提交 0a3405d3 编写于 作者: S Sudeep Dutt 提交者: Greg Kroah-Hartman

misc: mic: Fix reported static checker warning

Delete unnecessary prints resulting in an "spdev could be null"
warning from a static checker in scif_peer_remove(..).
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NAshutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: NSudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 24732e7e
...@@ -91,8 +91,6 @@ static int scif_peer_probe(struct scif_peer_dev *spdev) ...@@ -91,8 +91,6 @@ static int scif_peer_probe(struct scif_peer_dev *spdev)
rcu_assign_pointer(scifdev->spdev, spdev); rcu_assign_pointer(scifdev->spdev, spdev);
/* In the future SCIF kernel client devices will be added here */ /* In the future SCIF kernel client devices will be added here */
dev_info(&spdev->dev, "Peer added dnode %d\n",
spdev->dnode);
return 0; return 0;
} }
...@@ -109,8 +107,6 @@ static void scif_peer_remove(struct scif_peer_dev *spdev) ...@@ -109,8 +107,6 @@ static void scif_peer_remove(struct scif_peer_dev *spdev)
mutex_lock(&scif_info.conflock); mutex_lock(&scif_info.conflock);
scif_info.total--; scif_info.total--;
mutex_unlock(&scif_info.conflock); mutex_unlock(&scif_info.conflock);
dev_info(&spdev->dev, "Peer removed dnode %d\n",
spdev->dnode);
} }
static void scif_qp_setup_handler(struct work_struct *work) static void scif_qp_setup_handler(struct work_struct *work)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册