From: Alex Elder Date: Fri, 26 Oct 2012 04:34:42 +0000 (-0500) Subject: rbd: don't pass rbd_dev to rbd_get_client() X-Git-Tag: v3.8-rc1~21^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d3997fdf4c82adfb37a4886a21eaa513ee071b6;p=pandora-kernel.git rbd: don't pass rbd_dev to rbd_get_client() The only reason rbd_dev is passed to rbd_get_client() is so its rbd_client field can get assigned. Instead, just return the rbd_client pointer as a result and have the caller do the assignment. Change rbd_put_client() so it takes an rbd_client structure, so follows the more typical symmetry with rbd_get_client(). Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed