Tag: 6d210eef1b31b02ebec37a2ced6e73a1f94aacf1

staging: rdma: hfi1: Remove useless return variables

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> This patch removes unnecessary return variables and compresses the return logic. The coccinelle script that finds and fixes this issue is: @@ type T; identifier i,f; constant C; @@ – T i; …when != i when strict ( return -C; | – i = + return f(…); – return i; ) …

Continue reading