]> err.no Git - linux-2.6/blobdiff - fs/block_dev.c
[NETFILTER]: nf_conntrack: fix NF_CONNTRACK_PROC_COMPAT dependency
[linux-2.6] / fs / block_dev.c
index aaa8301f43f1dba8bb6934abf6b89c8e0fad9182..36c0e7af9d0f18df487aab2420414fd95b1f1302 100644 (file)
@@ -651,7 +651,8 @@ static void free_bd_holder(struct bd_holder *bo)
  * 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;
 
@@ -677,7 +678,6 @@ static int find_bd_holder(struct block_device *bdev, struct bd_holder *bo)
  */
 static int add_bd_holder(struct block_device *bdev, struct bd_holder *bo)
 {
-       struct bd_holder *tmp;
        int ret;
 
        if (!bo)