X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.c;fp=src%2Fdaemon%2Fplugin.c;h=c24602c0ef32ece14d43e2a518aaf88f03665f60;hp=72e3591cbae51859db8c4cde71132fa90512fae5;hb=f244f8d6d110e23f4aee70dc4b8ec8747be91678;hpb=ce79ade493b71b2c6a3dbc18b07d791739ad0cc2 diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index 72e3591c..c24602c0 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -347,7 +347,7 @@ static int create_register_callback(llist_t **list, /* {{{ */ const char *name, void *callback, user_data_t const *ud) { - if ((name == NULL) || (callback == NULL)) + if (name == NULL || callback == NULL) return EINVAL; callback_func_t *cf = calloc(1, sizeof(*cf));