Commit e5aa433f authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: lwm2m: Fix pointless variable assignment



Coverity reported that assigning ret = 0 is pointless, as in any
scenario (loop continues or ends) the ret variable is overwritten
anyway, w/o using the assigned value. Therefore remove the needless
assignment.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 47903616
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1661,9 +1661,6 @@ static int lwm2m_perform_read_object_instance(struct lwm2m_message *msg,
			if (ret < 0 && msg->path.level > LWM2M_PATH_LEVEL_OBJECT_INST) {
				break;
			}

			/* when reading multiple resources ignore return code */
			ret = 0;
		}

move_forward: