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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=77ba71f6485d2b7f923987b173d590b3003bc2a6;p=openwrt%2Fstaging%2Fblogic.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)