Skip to content

Commit 45a03ac

Browse files
committed
Remove unused assignments
1 parent 3489f0f commit 45a03ac

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/core_mqtt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ static MQTTStatus_t handleKeepAlive( MQTTContext_t * pContext )
14381438
static MQTTStatus_t handleIncomingPublish( MQTTContext_t * pContext,
14391439
MQTTPacketInfo_t * pIncomingPacket )
14401440
{
1441-
MQTTStatus_t status = MQTTBadParameter;
1441+
MQTTStatus_t status;
14421442
MQTTPublishState_t publishRecordState = MQTTStateNull;
14431443
uint16_t packetIdentifier = 0U;
14441444
MQTTPublishInfo_t publishInfo;
@@ -1567,7 +1567,7 @@ static MQTTStatus_t handleIncomingPublish( MQTTContext_t * pContext,
15671567
static MQTTStatus_t handlePublishAcks( MQTTContext_t * pContext,
15681568
MQTTPacketInfo_t * pIncomingPacket )
15691569
{
1570-
MQTTStatus_t status = MQTTBadResponse;
1570+
MQTTStatus_t status;
15711571
MQTTPublishState_t publishRecordState = MQTTStateNull;
15721572
uint16_t packetIdentifier;
15731573
MQTTPubAckType_t ackType;
@@ -2390,7 +2390,6 @@ static MQTTStatus_t sendConnectWithoutCopy( MQTTContext_t * pContext,
23902390
iterator,
23912391
&totalMessageLength );
23922392
/* Update the iterator to point to the next empty slot. */
2393-
iterator = &iterator[ vectorsAdded ];
23942393
ioVectorLength += vectorsAdded;
23952394
}
23962395

0 commit comments

Comments
 (0)