summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mic
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-13 08:47:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-30 22:53:19 +0200
commit05c4569b7f74889ac206fcdc0ac50afa24aca0fc (patch)
tree9f7446e63239ab999f23519d695a8cdae714e5dc /drivers/misc/mic
parentmisc: mic: Fix randconfig build error (diff)
downloadlinux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.tar.xz
linux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.zip
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)