firmware/psci: fix application of sizeof to pointer
authorjing yangyang <cgel.zte@gmail.com>
Fri, 20 Aug 2021 02:30:16 +0000 (19:30 -0700)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 26 Oct 2021 22:40:54 +0000 (17:40 -0500)
commit2ac5fb35cd520ab1851c9a4816c523b65276052f
tree6dbab1c35684270e1502415c40164cb9c85e799b
parent50740d5de6145cb88e69ccb29c586f10c401e3ee
firmware/psci: fix application of sizeof to pointer

sizeof when applied to a pointer typed expression gives the size of
the pointer.

./drivers/firmware/psci/psci_checker.c:158:41-47: ERROR application of sizeof to pointer

This issue was detected with the help of Coccinelle.

Fixes: 7401056de5f8 ("drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests")
Cc: stable@vger.kernel.org
Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/firmware/psci/psci_checker.c