From: Alex Elder Date: Thu, 2 Feb 2012 14:13:30 +0000 (-0600) Subject: rbd: have rbd_get_client() return a rbd_client X-Git-Tag: v3.4-rc1~76^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d720bcb0a8f246eb441ba9d4f341bc16746556c6;p=pandora-kernel.git rbd: have rbd_get_client() return a rbd_client Since rbd_get_client() currently returns an error code. It assigns the rbd_client field of the rbd_device structure it is passed if successful. Instead, have it return the created rbd_client structure and return a pointer-coded error if there is an error. This makes the assignment of the client pointer more obvious at the call site. Signed-off-by: Alex Elder Signed-off-by: Sage Weil --- Reading git-diff-tree failed