* If found, increment the reference count and return the pointer.
* If not found, returns NULL.
*/
-static int find_bd_holder(struct block_device *bdev, struct bd_holder *bo)
+static struct bd_holder *find_bd_holder(struct block_device *bdev,
+ struct bd_holder *bo)
{
struct bd_holder *tmp;
*/
static int add_bd_holder(struct block_device *bdev, struct bd_holder *bo)
{
- struct bd_holder *tmp;
int ret;
if (!bo)