Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Delete unnecessary local variable whose value is always 0 and return 0 as the result. The following Coccinelle script was used: @@ identifier ret; expression E; type T; @@ ( – T ret; | – T ret = 0; ) … when != \(ret=E \|ret–\|ret++\|–ret\|++ret\|ret-=E\|ret+=E\|ret|=E\|ret&=E\) ( ?-ret = 0; ) … …