From aec8535edccb943adc067d184af1a3370f5b9568 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Mon, 18 Jan 2021 18:22:36 +0300 Subject: soc: qcom: socinfo: Remove unwanted le32_to_cpu() Remove extra le32_to_cpu() conversion, data is already converted from le32 to cpu endianness. This fixes two following warnings: drivers/soc/qcom/socinfo.c:322:36: sparse: sparse: cast to restricted __le32 drivers/soc/qcom/socinfo.c:323:36: sparse: sparse: cast to restricted __le32 Signed-off-by: Dmitry Baryshkov Fixes: 734c78e7febf ("soc: qcom: socinfo: add info from PMIC models array") Link: https://lore.kernel.org/r/20210118152236.514776-1-dmitry.baryshkov@linaro.org Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/soc') diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 5b4ad24a022b..f6cfb79338f0 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -334,8 +334,8 @@ static int qcom_show_pmic_model_array(struct seq_file *seq, void *p) if (model < ARRAY_SIZE(pmic_models) && pmic_models[model]) seq_printf(seq, "%s %u.%u\n", pmic_models[model], - SOCINFO_MAJOR(le32_to_cpu(die_rev)), - SOCINFO_MINOR(le32_to_cpu(die_rev))); + SOCINFO_MAJOR(die_rev), + SOCINFO_MINOR(die_rev)); else seq_printf(seq, "unknown (%d)\n", model); } -- cgit v1.2.3