habanalabs: initialize variable to default value
authorTomer Tayar <ttayar@habana.ai>
Mon, 1 Jun 2020 06:56:47 +0000 (09:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jun 2020 07:08:10 +0000 (09:08 +0200)
commitc68f1baeaff4b21976191ba929f5ae26e1037a0a
tree8dd70be568344defde216a976a42ced127d356a8
parentfb6d8d12edea49bfa5c769be4f04c43570a1d197
habanalabs: initialize variable to default value

Fix the following smatch error in unmap_device_va():
error: uninitialized symbol 'rc'.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Link: https://lore.kernel.org/r/20200601065648.8775-1-oded.gabbay@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/memory.c