Re: [PATCH] powerpc/sysdev: fix incorrect use to determine if list is empty

2022-03-08 Thread Michael Ellerman
On Mon, 28 Feb 2022 15:24:33 +0100, Jakob Koschel wrote: > '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. > > [...] Appl

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

2022-02-28 Thread Jakob Koschel
'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: 83ff9dcf375c ("powerpc/sysdev: implement FSL GTM support") Signed-off-by: Jak