From: H Hartley Sweeten Date: Wed, 4 Mar 2015 19:15:35 +0000 (-0700) Subject: staging: comedi: ni_atmio: (!foo) preferred over (foo == NULL) X-Git-Tag: v4.1-rc1~152^2~138^2~595 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=77ba71f6485d2b7f923987b173d590b3003bc2a6;p=karo-tx-linux.git staging: comedi: ni_atmio: (!foo) preferred over (foo == NULL) Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c index 301f154be813..9cb9beb53e16 100644 --- a/drivers/staging/comedi/drivers/ni_atmio.c +++ b/drivers/staging/comedi/drivers/ni_atmio.c @@ -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)