diff options
author | Junsu Shin <jjunes0@gmail.com> | 2015-08-11 17:07:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-14 18:56:54 -0700 |
commit | a8f401f9e751eb5d1f6e9f66e45c84e390bc75bb (patch) | |
tree | ef112ef1459832762870fe54bb541ed6dbb96472 /drivers/staging/vme | |
parent | 6c37e7445700fd49a0b86db86b5f2c20bc963fd5 (diff) | |
download | blackbird-op-linux-a8f401f9e751eb5d1f6e9f66e45c84e390bc75bb.tar.gz blackbird-op-linux-a8f401f9e751eb5d1f6e9f66e45c84e390bc75bb.zip |
staging: vme: devices: fix NULL comparison style
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>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r-- | drivers/staging/vme/devices/vme_pio2_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vme/devices/vme_pio2_core.c b/drivers/staging/vme/devices/vme_pio2_core.c index 767b2efb3f1c..934115477f98 100644 --- a/drivers/staging/vme/devices/vme_pio2_core.c +++ b/drivers/staging/vme/devices/vme_pio2_core.c @@ -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; |