]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/rapidio/rio-driver.c
rapidio: remove excess kernel-doc notation
[linux-2.6.git] / drivers / rapidio / rio-driver.c
index 3ce9f3defc1287f688f6484f2f265b7cdb620125..addb87cf44d9954ecebe90687409dcf0c9aecb77 100644 (file)
@@ -79,7 +79,6 @@ void rio_dev_put(struct rio_dev *rdev)
 
 /**
  *  rio_device_probe - Tell if a RIO device structure has a matching RIO device id structure
- *  @id: the RIO device id structure to match against
  *  @dev: the RIO device structure to match against
  *
  * return 0 and set rio_dev->driver when drv claims rio_dev, else error
@@ -101,8 +100,8 @@ static int rio_device_probe(struct device *dev)
                if (error >= 0) {
                        rdev->driver = rdrv;
                        error = 0;
+               } else
                        rio_dev_put(rdev);
-               }
        }
        return error;
 }