diff options
author | Dan Carpenter | 2016-04-13 08:47:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-04-30 22:53:19 +0200 |
commit | 05c4569b7f74889ac206fcdc0ac50afa24aca0fc (patch) | |
tree | 9f7446e63239ab999f23519d695a8cdae714e5dc /drivers/misc/mic/scif | |
parent | misc: mic: Fix randconfig build error (diff) | |
download | kernel-qcow2-linux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.tar.gz kernel-qcow2-linux-05c4569b7f74889ac206fcdc0ac50afa24aca0fc.tar.xz kernel-qcow2-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/mic/scif')
-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) |