Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccd33fbf authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufs: Avoid uninitialized use of offset



In function ufs_qcom_testbus_config, offset variable is
declared but not initialized. Switch case can take the
default case and use the uninitialized offset variable.
This change fixes the uninitialized use of offset.

Change-Id: I772296ef5606bc519dfcd00bfa6995b2d8646b9c
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 3e1f25e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2596,7 +2596,7 @@ bool ufs_qcom_testbus_cfg_is_ok(struct ufs_qcom_host *host,
int ufs_qcom_testbus_config(struct ufs_qcom_host *host)
{
	int reg = 0;
	int offset, ret = 0, testbus_sel_offset = 19;
	int offset = 0, ret = 0, testbus_sel_offset = 19;
	u32 mask = TEST_BUS_SUB_SEL_MASK;
	unsigned long flags;
	struct ufs_hba *hba;