Commit 05c4569b authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c88345e
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg) void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg)
{ {
struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0];
int mark, err; int mark = 0;
int err;
err = _scif_fence_mark(ep, &mark); err = _scif_fence_mark(ep, &mark);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment