return false;
if (nm->checkentry == NULL)
return true;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
return nm->checkentry(&local_par);
+#else
+ return nm->checkentry(&local_par) == 0;
+#endif
}
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) && \
return false;
if (nm->checkentry == NULL)
return true;
- return nm->checkentry(par) == 0 ? true : false;
+ return nm->checkentry(par) == 0;
}
#endif
if (nt->checkentry == NULL)
/* this is valid, just like if there was no function */
return true;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
return nt->checkentry(&local_par);
+#else
+ return nt->checkentry(&local_par) == 0;
+#endif
}
#endif
return false;
if (nt->checkentry == NULL)
return true;
- return nt->checkentry(par) == 0 ? true : false;
+ return nt->checkentry(par) == 0;
}
#endif