soc: qcom: pmic_glink: remove redundant calculation of svid
authorTom Rix <trix@redhat.com>
Mon, 6 Feb 2023 13:58:31 +0000 (05:58 -0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 6 Feb 2023 20:25:00 +0000 (12:25 -0800)
commitdcb4e7a57cbe8d85e4927f517ae28aab17596419
tree1b09ca8e30024a0510d799516f1561b430cac4cd
parentacdbf5f9b2c492505145f6e50c65418521a547c4
soc: qcom: pmic_glink: remove redundant calculation of svid

gcc with W=1 reports
drivers/soc/qcom/pmic_glink_altmode.c:223:13: error: variable ‘svid’ set but not used [-Werror=unused-but-set-variable]
  223 |         u16 svid;

From reviewing the code, the setting of alt_port->svid does the same calculation.
Both are not needed.  For debuggablity, keep the setting of local svid.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230206135831.1794583-1-trix@redhat.com
drivers/soc/qcom/pmic_glink_altmode.c