Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8f401f9 authored by Junsu Shin's avatar Junsu Shin Committed by Greg Kroah-Hartman
Browse files

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: default avatarJunsu Shin <jjunes0@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c37e744
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -216,7 +216,7 @@ static int pio2_probe(struct vme_dev *vdev)
	int vec;
	int vec;


	card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL);
	card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL);
	if (card == NULL) {
	if (!card) {
		retval = -ENOMEM;
		retval = -ENOMEM;
		goto err_struct;
		goto err_struct;
	}
	}
@@ -281,7 +281,7 @@ static int pio2_probe(struct vme_dev *vdev)


	/* Get a master window and position over regs */
	/* Get a master window and position over regs */
	card->window = vme_master_request(vdev, VME_A24, VME_SCT, VME_D16);
	card->window = vme_master_request(vdev, VME_A24, VME_SCT, VME_D16);
	if (card->window == NULL) {
	if (!card->window) {
		dev_err(&card->vdev->dev,
		dev_err(&card->vdev->dev,
			"Unable to assign VME master resource\n");
			"Unable to assign VME master resource\n");
		retval = -EIO;
		retval = -EIO;