staging: comedi: ni_atmio: (!foo) preferred over (foo == NULL)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 4 Mar 2015 19:15:35 +0000 (12:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:01:29 +0000 (16:01 -0800)
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_atmio.c

index 301f154be8138a9cf6c23a8c182c3ed791922e0b..9cb9beb53e16044f237dcffc4f658407dd10e70d 100644 (file)
@@ -250,7 +250,7 @@ static int ni_isapnp_find_board(struct pnp_dev **dev)
                                          ISAPNP_FUNCTION(ni_boards[i].
                                                          isapnp_id), NULL);
 
-               if (isapnp_dev == NULL || isapnp_dev->card == NULL)
+               if (!isapnp_dev || !isapnp_dev->card)
                        continue;
 
                if (pnp_device_attach(isapnp_dev) < 0)