/* Get the list of hooks for an id, NULL if none exists */
-inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
+static inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
{
LttvHooks *ret;
- if(id < h->len) ret = h->pdata[id];
+ if(likely(id < h->len)) ret = h->pdata[id];
else ret = NULL;
return ret;