mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Remove IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ) from MQTT code
The cut down version of the task pool has only one task pool, namely, system task pool. All the task pool API functions accept NULL as a valid parameter for IotTaskPool_t and use the system task pool when NULL is passed for the system task pool. IOT_SYSTEM_TASKPOOL is defined to NULL to use system task pool and therefore the above assert is no longer valid.
This commit is contained in:
parent
8ea501ef11
commit
68fd276886
|
@ -656,7 +656,7 @@ void _IotMqtt_ProcessKeepAlive( IotTaskPool_t pTaskPool,
|
||||||
_mqttConnection_t * pMqttConnection = ( _mqttConnection_t * ) pContext;
|
_mqttConnection_t * pMqttConnection = ( _mqttConnection_t * ) pContext;
|
||||||
|
|
||||||
/* Check parameters. */
|
/* Check parameters. */
|
||||||
IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );
|
/* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */
|
||||||
IotMqtt_Assert( pKeepAliveJob == pMqttConnection->keepAliveJob );
|
IotMqtt_Assert( pKeepAliveJob == pMqttConnection->keepAliveJob );
|
||||||
|
|
||||||
/* Check that keep-alive interval is valid. The MQTT spec states its maximum
|
/* Check that keep-alive interval is valid. The MQTT spec states its maximum
|
||||||
|
@ -786,7 +786,7 @@ void _IotMqtt_ProcessIncomingPublish( IotTaskPool_t pTaskPool,
|
||||||
* are disabled. */
|
* are disabled. */
|
||||||
( void ) pTaskPool;
|
( void ) pTaskPool;
|
||||||
( void ) pPublishJob;
|
( void ) pPublishJob;
|
||||||
IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );
|
/* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */
|
||||||
IotMqtt_Assert( pOperation->incomingPublish == true );
|
IotMqtt_Assert( pOperation->incomingPublish == true );
|
||||||
IotMqtt_Assert( pPublishJob == pOperation->job );
|
IotMqtt_Assert( pPublishJob == pOperation->job );
|
||||||
|
|
||||||
|
@ -839,7 +839,7 @@ void _IotMqtt_ProcessSend( IotTaskPool_t pTaskPool,
|
||||||
* are disabled. */
|
* are disabled. */
|
||||||
( void ) pTaskPool;
|
( void ) pTaskPool;
|
||||||
( void ) pSendJob;
|
( void ) pSendJob;
|
||||||
IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );
|
/* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */
|
||||||
IotMqtt_Assert( pSendJob == pOperation->job );
|
IotMqtt_Assert( pSendJob == pOperation->job );
|
||||||
|
|
||||||
/* The given operation must have an allocated packet and be waiting for a status. */
|
/* The given operation must have an allocated packet and be waiting for a status. */
|
||||||
|
@ -1020,7 +1020,7 @@ void _IotMqtt_ProcessCompletedOperation( IotTaskPool_t pTaskPool,
|
||||||
* are disabled. */
|
* are disabled. */
|
||||||
( void ) pTaskPool;
|
( void ) pTaskPool;
|
||||||
( void ) pOperationJob;
|
( void ) pOperationJob;
|
||||||
IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL );
|
/* IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ); */
|
||||||
IotMqtt_Assert( pOperationJob == pOperation->job );
|
IotMqtt_Assert( pOperationJob == pOperation->job );
|
||||||
|
|
||||||
/* The operation's callback function and status must be set. */
|
/* The operation's callback function and status must be set. */
|
||||||
|
|
Loading…
Reference in a new issue