From: Dan Carpenter Date: Wed, 13 Apr 2016 06:47:42 +0000 (+0300) Subject: misc: mic: silence uninitialized variable warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=05c4569b7f74889ac206fcdc0ac50afa24aca0fc;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)