Skip to content

Commit 2d2f5f1

Browse files
Dan Carpenterquic-jhugo
authored andcommitted
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: c501ca2 ("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
1 parent 1408097 commit 2d2f5f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/accel/qaic/qaic_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ static void qaic_destroy_drm_device(struct qaic_device *qdev, s32 partition_id)
262262

263263
static int qaic_mhi_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id)
264264
{
265+
u16 major = -1, minor = -1;
265266
struct qaic_device *qdev;
266-
u16 major, minor;
267267
int ret;
268268

269269
/*

0 commit comments

Comments
 (0)