misc: mic: silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Apr 2016 06:47:42 +0000 (09:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 20:53:19 +0000 (13:53 -0700)
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>
drivers/misc/mic/scif/scif_fence.c

index 7f2c96f57066745966673d6b4820a15da19c81d4..cac3bcc308a7ebfc99bc40522389587060b251f7 100644 (file)
@@ -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)