Tag: fdb78b64a7ba790e93a74f35778b431e71b5f48d

staging: rts5208: Removed unnecessary return variable

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> This patch removes unnecessary return variables in switch statements. This was done with Coccinelle: @@ local idexpression ret; expression e1,e2; identifier label; @@ switch ( … ) { case label : … – ret = e1; – break; + return e1; … default: … – ret = e2; + return e2; …

Continue reading