diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index dc88ac62dc..e418c187f7 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -755,13 +755,12 @@ int RunModeIdsAFPAutoFp(DetectEngineCtx *de_ctx) */ int RunModeIdsAFPSingle(DetectEngineCtx *de_ctx) { + SCEnter(); +#ifdef HAVE_AF_PACKET int nafp = LiveGetDeviceCount(); char *afp_dev = NULL; char *afp_devc = NULL; - SCEnter(); -#ifdef HAVE_AF_PACKET - if (nafp > 1) { SCLogError(SC_ERR_RUNMODE, "Can't use single runmode with multiple device");