Commit 6597efa6 authored by Zhen Lei's avatar Zhen Lei Committed by Jens Axboe
Browse files

sunvdc: remove unnecessary oom message



Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ce9a8ca6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1001,9 +1001,8 @@ static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id)
	}

	port = kzalloc(sizeof(*port), GFP_KERNEL);
	err = -ENOMEM;
	if (!port) {
		printk(KERN_ERR PFX "Cannot allocate vdc_port.\n");
		err = -ENOMEM;
		goto err_out_release_mdesc;
	}