Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77ba71f6 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_atmio: (!foo) preferred over (foo == NULL)

parent 307da4b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -250,7 +250,7 @@ static int ni_isapnp_find_board(struct pnp_dev **dev)
					  ISAPNP_FUNCTION(ni_boards[i].
					  ISAPNP_FUNCTION(ni_boards[i].
							  isapnp_id), NULL);
							  isapnp_id), NULL);


		if (isapnp_dev == NULL || isapnp_dev->card == NULL)
		if (!isapnp_dev || !isapnp_dev->card)
			continue;
			continue;


		if (pnp_device_attach(isapnp_dev) < 0)
		if (pnp_device_attach(isapnp_dev) < 0)