Skip to content

Commit

Permalink
misc: mic: silence uninitialized variable warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 30, 2016
1 parent 9c88345 commit 05c4569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/misc/mic/scif/scif_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 05c4569

Please sign in to comment.