From: H Hartley Sweeten Date: Wed, 4 Mar 2015 19:15:31 +0000 (-0700) Subject: staging: comedi: amplc_pci230: (!foo) preferred over (foo == NULL) X-Git-Tag: v4.1-rc1~152^2~138^2~599 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d719cecc08ecc58040ffd751423810b4c19d772;p=karo-tx-linux.git staging: comedi: amplc_pci230: (!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/amplc_pci230.c b/drivers/staging/comedi/drivers/amplc_pci230.c index a977156ca468..2dd794d01354 100644 --- a/drivers/staging/comedi/drivers/amplc_pci230.c +++ b/drivers/staging/comedi/drivers/amplc_pci230.c @@ -2381,7 +2381,7 @@ static int pci230_auto_attach(struct comedi_device *dev, spin_lock_init(&devpriv->ao_stop_spinlock); dev->board_ptr = pci230_find_pci_board(pci_dev); - if (dev->board_ptr == NULL) { + if (!dev->board_ptr) { dev_err(dev->class_dev, "amplc_pci230: BUG! cannot determine board type!\n"); return -EINVAL;