mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
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: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
ce9a8ca68a
commit
6597efa6c5
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue