accel/qaic: silence some uninitialized variable warnings
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 3 May 2023 10:41:27 +0000 (13:41 +0300)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Tue, 16 May 2023 17:04:08 +0000 (11:04 -0600)
commit2d2f5f1e8fd91fe848aacde28f738fb8e8d95a27
treef6bc0faba7f9885b49f910a0d1fd5bcc0751a219
parent140809738d969376f26f13264b16669703956f6c
accel/qaic: silence some uninitialized variable warnings

Smatch complains that these are not initialized if get_cntl_version()
fails but we still print them in the debug message.  Not the end of
the world, but true enough.  Let's just initialize them to a dummy value
to make the checker happy.

Fixes: c501ca23a6a3 ("accel/qaic: Add uapi and core driver file")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
[jhugo: Add fixes and reorder varable declarations for style]
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/d11ee378-7b06-4b5e-b56f-d66174be1ab3@kili.mountain
drivers/accel/qaic/qaic_drv.c