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

Commit 54644927 authored by Sam Bobroff's avatar Sam Bobroff Committed by Michael Ellerman
Browse files

powerpc/eeh: Cleanup eeh_enabled()

parent 9a3eda26
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -241,11 +241,7 @@ static inline bool eeh_has_flag(int flag)

static inline bool eeh_enabled(void)
{
	if (eeh_has_flag(EEH_FORCE_DISABLED) ||
	    !eeh_has_flag(EEH_ENABLED))
		return false;

	return true;
	return eeh_has_flag(EEH_ENABLED) && !eeh_has_flag(EEH_FORCE_DISABLED);
}

static inline void eeh_serialize_lock(unsigned long *flags)