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

Commit e663e1e0 authored by Qian Cai's avatar Qian Cai Committed by Michael Ellerman
Browse files

powerpc/pseries/pmem: Fix a set but not used value



The commit 4c5d87db ("powerpc/pseries: PAPR persistent memory
support") set a local variable "count" in dlpar_hp_pmem() but never
use it.

  arch/powerpc/platforms/pseries/pmem.c: In function 'dlpar_hp_pmem':
  arch/powerpc/platforms/pseries/pmem.c:109:6: warning: variable 'count' set but not used

Signed-off-by: default avatarQian Cai <cai@lca.pw>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent c05f57fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ static ssize_t pmem_drc_remove_node(u32 drc_index)

int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog)
{
	u32 count, drc_index;
	u32 drc_index;
	int rc;

	/* slim chance, but we might get a hotplug event while booting */
@@ -123,7 +123,6 @@ int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog)
		return -EINVAL;
	}

	count = hp_elog->_drc_u.drc_count;
	drc_index = hp_elog->_drc_u.drc_index;

	lock_device_hotplug();