Commit 2928fad5 authored by Asutosh Das's avatar Asutosh Das Committed by Sandeep Dhavale
Browse files

UPSTREAM: ufs: mcq: qcom: Clean the return path of ufs_qcom_mcq_config_resource



Smatch static checker reported:
drivers/ufs/host/ufs-qcom.c:1469
ufs_qcom_mcq_config_resource() info: returning a literal zero is
cleaner

Fix the above warning by returning in place instead of a jump to a
label.
Also remove the usage of devm_kfree() as it's unnecessary in this
function.

Fixes: c263b4ef ("scsi: ufs: core: mcq: Configure resource regions")
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarAsutosh Das <quic_asutoshd@quicinc.com>
Link: https://lore.kernel.org/r/3ebd2582af74b81ef7b57149f57c6a3bf0963953.1677721229.git.quic_asutoshd@quicinc.com


Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
Reviewed-by: default avatarManivannan Sadhasivam <mani@kernel.org>

Bug: 279870970
Change-Id: I77d5e09fef772590be1ae98b57a0fdbabe969c52
(cherry picked from commit c9507eab)
Signed-off-by: default avatarXiaosen He <quic_xiaosenh@quicinc.com>
parent 3e2abdc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment