handle_wc_error code review: code cleanup and fix errors

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>