Skip to content
Commit fa1321b1 authored by Jakob Koschel's avatar Jakob Koschel Committed by Michael Ellerman
Browse files

powerpc/sysdev: fix incorrect use to determine if list is empty



'gtm' will *always* be set by list_for_each_entry().
It is incorrect to assume that the iterator value will be NULL if the
list is empty.

Instead of checking the pointer it should be checked if
the list is empty.

Fixes: 83ff9dcf ("powerpc/sysdev: implement FSL GTM support")
Signed-off-by: default avatarJakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220228142434.576226-1-jakobkoschel@gmail.com
parent 37e67648
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment