2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 17:23:55 +08:00

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>
This commit is contained in:
Junsu Shin 2015-08-11 17:07:14 -05:00 committed by Greg Kroah-Hartman
parent 6c37e74457
commit a8f401f9e7

View 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;