Tag: 7e43d4d255588360d5cf7a2113babd9d9d34465e

staging: rdma: hfi1: Compress return logic

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Simplified function return by merging assignment and return into one line. Found with Coccinelle. @@ expression e; local idexpression ret; @@ – ret = + return e; – return ret; @@ type T; identifier x; @@ – T x; … when != x Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rdma/hfi1/user_pages.c …

Continue reading