diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-13 08:47:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 22:53:19 +0200 |
commit | 05c4569b7f74889ac206fcdc0ac50afa24aca0fc (patch) | |
tree | 9f7446e63239ab999f23519d695a8cdae714e5dc /drivers/misc | |
parent | misc: mic: Fix randconfig build error (diff) | |
download | linux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.tar.xz linux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.zip |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mic/scif/scif_fence.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |