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

Michael Ellerman patch-notifications at ellerman.id.au
Mon Apr 22 00:19:04 AEST 2019


On Sun, 2019-04-07 at 01:54:47 UTC, Qian Cai wrote:
> The commit 4c5d87db4978 ("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 [-Wunused-but-set-variable]
> 
> Signed-off-by: Qian Cai <cai at lca.pw>
> Reviewed-by: Mukesh Ojha <mojha at codeaurora.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/e663e1e06089773cdab03023563aead6

cheers


More information about the Linuxppc-dev mailing list