Unverified Commit a60641b0 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno
Browse files

soc: mediatek: mtk-svs: Remove redundant print in svs_get_efuse_data

Callers of svs_get_efuse_data() are already printing an error in case
anything goes wrong, and the error print for nvmem_cell_read() failure
is redundant: remove it.

Link: https://lore.kernel.org/r/20231121125044.78642-14-angelogioacchino.delregno@collabora.com


Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
parent 947f4252
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1822,8 +1822,6 @@ static int svs_get_efuse_data(struct svs_platform *svsp,

	*svsp_efuse = nvmem_cell_read(cell, svsp_efuse_max);
	if (IS_ERR(*svsp_efuse)) {
		dev_err(svsp->dev, "cannot read \"%s\" efuse: %ld\n",
			nvmem_cell_name, PTR_ERR(*svsp_efuse));
		nvmem_cell_put(cell);
		return PTR_ERR(*svsp_efuse);
	}