diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 13:06:48 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 13:06:48 +0100 |
commit | 6b0e236cdf3d55299de70cf41dafdefec286f103 (patch) | |
tree | a04a786923e78fa579c04ed8ae560fc713f255b7 /action.c | |
parent | 4e04480206a6abae249f890e07fdecf380348c74 (diff) | |
download | rsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.tar.gz rsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.tar.bz2 rsyslog-6b0e236cdf3d55299de70cf41dafdefec286f103.zip |
cleanup unreachable code
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1945,20 +1945,14 @@ actionNewInst(struct nvlst *lst, action_t **ppAction) omodStringRequest_t *pOMSR; void *pModData; action_t *pAction; - int typeIdx; DEFiRet; paramvals = nvlstGetParams(lst, &pblk, NULL); if(paramvals == NULL) { - ABORT_FINALIZE(RS_RET_ERR); + ABORT_FINALIZE(RS_RET_PARAM_ERROR); } dbgprintf("action param blk after actionNewInst:\n"); cnfparamsPrint(&pblk, paramvals); - typeIdx = cnfparamGetIdx(&pblk, "type"); - if(paramvals[typeIdx].bUsed == 0) { - errmsg.LogError(0, RS_RET_CONF_RQRD_PARAM_MISSING, "action type missing"); - ABORT_FINALIZE(RS_RET_CONF_RQRD_PARAM_MISSING); // TODO: move this into rainerscript handlers - } cnfModName = (uchar*)es_str2cstr(paramvals[cnfparamGetIdx(&pblk, ("type"))].val.d.estr, NULL); if((pMod = module.FindWithCnfName(loadConf, cnfModName, eMOD_OUT)) == NULL) { errmsg.LogError(0, RS_RET_MOD_UNKNOWN, "module name '%s' is unknown", cnfModName); |