staging: comedi: ni_atmio: remove printk noise in ni_isapnp_find_board()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jul 2014 20:30:00 +0000 (13:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:01 +0000 (16:08 -0700)
The printk() messages in this function a just added noise. Remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_atmio.c

index 9ca8a8262b7e1b0d482f897ba7cc5cb963c60337..c1292db643c2c355314ccf4630620b6c8d43bbc6 100644 (file)
@@ -253,20 +253,17 @@ static int ni_isapnp_find_board(struct pnp_dev **dev)
                if (isapnp_dev == NULL || isapnp_dev->card == NULL)
                        continue;
 
-               if (pnp_device_attach(isapnp_dev) < 0) {
-                       printk
-                        ("ni_atmio: %s found but already active, skipping.\n",
-                         ni_boards[i].name);
+               if (pnp_device_attach(isapnp_dev) < 0)
                        continue;
-               }
+
                if (pnp_activate_dev(isapnp_dev) < 0) {
                        pnp_device_detach(isapnp_dev);
                        return -EAGAIN;
                }
-               if (!pnp_port_valid(isapnp_dev, 0)
-                   || !pnp_irq_valid(isapnp_dev, 0)) {
+
+               if (!pnp_port_valid(isapnp_dev, 0) ||
+                   !pnp_irq_valid(isapnp_dev, 0)) {
                        pnp_device_detach(isapnp_dev);
-                       printk("ni_atmio: pnp invalid port or irq, aborting\n");
                        return -ENOMEM;
                }
                break;