Tag: c3397c1b06b6534caaaffa39160ffe09d540a575

staging: media: davinci_vpfe: remove ret variable in switch statements

Author: Thaissa Falbo <thaissa.falbo@gmail.com> Remove ret variable in functions that used it to determine the return. Simplified the return logic for these functions. Found with Coccinelle script: @@ local idexpression ret; expression c,d; identifier label; @@ switch ( … ) { case label : … – ret = c; – break; + return c; … …

Continue reading