summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mic
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-13 09:47:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-30 13:53:19 -0700
commit05c4569b7f74889ac206fcdc0ac50afa24aca0fc (patch)
tree9f7446e63239ab999f23519d695a8cdae714e5dc /drivers/misc/mic
parent9c88345e68922a72060317af2b5dc678915ab6d6 (diff)
downloadlinux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.tar.bz2
misc: mic: silence uninitialized variable warning
My static checker complains that we still use "mark" even when the _scif_fence_mark() call fails so it can be uninitialized. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mic')
-rw-r--r--drivers/misc/mic/scif/scif_fence.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mic/scif/scif_fence.c b/drivers/misc/mic/scif/scif_fence.c
index 7f2c96f57066..cac3bcc308a7 100644
--- a/drivers/misc/mic/scif/scif_fence.c
+++ b/drivers/misc/mic/scif/scif_fence.c
@@ -27,7 +27,8 @@
void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg)
{
struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0];
- int mark, err;
+ int mark = 0;
+ int err;
err = _scif_fence_mark(ep, &mark);
if (err)