[PATCH 00/12] Fold status in error code

Goldwyn Rodrigues
2011-07-07T17:20:18Z

The firmware command handling in mthca looks like
err = mthca_FOO(..., &status);
if (err) ...
if (status) ...

Most of the time where status matters, a non-OK status message translates to
-EINVAL err.

This patchset folds the status in error code, so that we don't need to repeat
error handling code, and yet the type of error is communicated to the calling
functions.

This is in parallel to mlx4 code by Roland. The patches were broken per-file
basis, and all 12 patches are required before you can compile the module.

--
Goldwyn
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html