The same test for "i < MAT_ATTRIB_MAX" is already done in condition of surrounding for loop. The check is always true at this point, removed dead code.
Please apply attached patch.
Created attachment 10961 [details] [review]
dead code removal patch
Fixed in git.