More input arguments than expected cc4m_logo_inline

IDFCNS-22
TitleDo not call functions with more input arguments than expected.
PriorityMandatory
Severity level1
DescriptionFunctions should not be called with more inputs than they can handle according to their implementation.
RationaleIf a function is called with more input arguments than expected, it will result in a runtime error.

Avoid:

function processTemperatures(Tin1, Tin2, Tin3)
	x = calculateMaxTemperature(Tin1, Tin2, Tin3);
end

function out = calculateMaxTemperature(Tin1, Tin2)
	out = max(Tin1, Tin2);
end

Instead use:

function processTemperatures(Tin1, Tin2, Tin3)
	x = calculateMaxTemperature(Tin1, Tin2);
end

function out = calculateMaxTemperature(Tin1, Tin2)
	out = max(Tin1, Tin2);
end