Tag: c81d497284f6009a856b399e70f812671fdc7fcf

[media] cx25821: fix error return code and clean up

Author: Peter Senna Tschudin <peter.senna@gmail.com> The function cx25821_sram_channel_setup_upstream_audio always return zero, so the return value is not saved any more. Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret …

Continue reading