staging: vme: devices: fix NULL comparison style
authorJunsu Shin <jjunes0@gmail.com>
Tue, 11 Aug 2015 22:07:14 +0000 (17:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:56:54 +0000 (18:56 -0700)
This is a patch to vme_pio2_core.c that fixes up the NULL comparison style.

Signed-off-by: Junsu Shin <jjunes0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_pio2_core.c

index 767b2efb3f1c84ab3666b9fb3fd112111a3f20fc..934115477f9826ed403bb725c5305d9ee161d304 100644 (file)
@@ -216,7 +216,7 @@ static int pio2_probe(struct vme_dev *vdev)
        int vec;
 
        card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL);
-       if (card == NULL) {
+       if (!card) {
                retval = -ENOMEM;
                goto err_struct;
        }
@@ -281,7 +281,7 @@ static int pio2_probe(struct vme_dev *vdev)
 
        /* Get a master window and position over regs */
        card->window = vme_master_request(vdev, VME_A24, VME_SCT, VME_D16);
-       if (card->window == NULL) {
+       if (!card->window) {
                dev_err(&card->vdev->dev,
                        "Unable to assign VME master resource\n");
                retval = -EIO;