Syntax fixes to upstream

These are a couple of (hopefully, trivial) syntax corrections.
• A stray "l" (L) in one source file
• A second "return" in a single function (in two similar matrix functions)
• An "==" being used where I believe it was meant to be an "="
   (i.e. a discarded comparison being made in a block of assignments)