plugin: Remove pointless if statement
cp has to be valid here, no need to check it. Signed-off-by: Corey Minyard <minyard@acm.org>
This commit is contained in:
parent
c94ca6179f
commit
a84547ed0a
1 changed files with 2 additions and 4 deletions
|
|
@ -377,10 +377,8 @@ plugin_load_one(clixon_handle h,
|
|||
/* Copy name to struct */
|
||||
snprintf(cp->cp_name, sizeof(cp->cp_name), "%s", name);
|
||||
cp->cp_api = *api;
|
||||
if (cp){
|
||||
*cpp = cp;
|
||||
cp = NULL;
|
||||
}
|
||||
*cpp = cp;
|
||||
cp = NULL;
|
||||
retval = 1;
|
||||
done:
|
||||
clixon_debug(CLIXON_DBG_INIT | CLIXON_DBG_DETAIL, "retval:%d", retval);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue