Tag: c2e5c951c2d10536a9f17647f3440e5f9f639d8b

[media] si2165: Refactoring for si2165_writereg_mask8()

Author: Markus Elfring <elfring@users.sourceforge.net> This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the si2165_readreg8() function failed. 2. Reduce the scope for the local variables “ret” and “tmp” to one branch of an if statement. 3. Delete the jump label “err” then. 4. Return the value …

Continue reading