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

Commit 4f8c8527 authored by Cyril Roelandt's avatar Cyril Roelandt Committed by Konrad Rzeszutek Wilk
Browse files

xen: remove redundant NULL check before unregister_and_remove_pcpu().



unregister_and_remove_pcpu on a NULL pointer is a no-op, so the NULL check in
sync_pcpu can be removed.

Signed-off-by: default avatarCyril Roelandt <tipecaml@gmail.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 13d2b4d1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -278,7 +278,6 @@ static int sync_pcpu(uint32_t cpu, uint32_t *max_cpu)
	 * Only those at cpu present map has its sys interface.
	 */
	if (info->flags & XEN_PCPU_FLAGS_INVALID) {
		if (pcpu)
		unregister_and_remove_pcpu(pcpu);
		return 0;
	}