drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)
MyungJoo Ham
Acked-byQuoted 14 lines · MyungJoo Ham
Quoted 13 lines
Quoted 4 lines
IS_ERR(_OR_NULL)already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it.Signed-off-by Viresh Kumar <[email protected]>@ from
include/linux/err.h
#defineIS_ERR_VALUE(x)unlikely((x) >= (unsigned long)-MAX_ERRNO)
...
static inline bool__must_checkIS_ERR_OR_NULL(__force const void *ptr){ return !ptr || IS_ERR_VALUE((unsigned long)ptr); }
Quoted 6 lines
Quoted 2 lines
"!ptr" appears not covered with
IS_ERR_OR_NULL.
(only theIS_ERRpart seems covered)Right, the first patch of the series has fixed that.
Ah.. ok, then,
Acked-by MyungJoo Ham <[email protected]>
please let me know when the series is ready to go.
Cheers,
MyungJoo
Quoted 4 lines
Signature · 2 lines
-- viresh
Quoted 4 lines · MyungJoo Ham
Acked-by MyungJoo Ham <[email protected]>please let me know when the series is ready to go.
It wouldn't harm even if you apply it without 1/15. So, just go on and apply :)
Signature · 1 line
viresh