1
0
Fork 0

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>
hifive-unleashed-5.1
Dan Carpenter 2016-04-13 09:47:42 +03:00 committed by Greg Kroah-Hartman
parent 9c88345e68
commit 05c4569b7f
1 changed files with 2 additions and 1 deletions

View 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)