summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mic
diff options
context:
space:
mode:
authorSudeep Dutt <sudeep.dutt@intel.com>2015-06-09 20:58:32 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-12 17:01:43 -0700
commit0a3405d35c72535d6a57af3cad29ed14d26cd203 (patch)
tree3d4e7bbefef8ac7ea98861b9b5086027b19adaab /drivers/misc/mic
parent24732e7ee92ec5aadbeddd05c388060cccee422b (diff)
downloadlinux-0a3405d35c72535d6a57af3cad29ed14d26cd203.tar.bz2
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: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mic')
-rw-r--r--drivers/misc/mic/scif/scif_main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/misc/mic/scif/scif_main.c b/drivers/misc/mic/scif/scif_main.c
index f7187dc68519..6ce851f5c7e6 100644
--- a/drivers/misc/mic/scif/scif_main.c
+++ b/drivers/misc/mic/scif/scif_main.c
@@ -91,8 +91,6 @@ static int scif_peer_probe(struct scif_peer_dev *spdev)
rcu_assign_pointer(scifdev->spdev, spdev);
/* In the future SCIF kernel client devices will be added here */
- dev_info(&spdev->dev, "Peer added dnode %d\n",
- spdev->dnode);
return 0;
}
@@ -109,8 +107,6 @@ static void scif_peer_remove(struct scif_peer_dev *spdev)
mutex_lock(&scif_info.conflock);
scif_info.total--;
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)