Skip to content

Commit

Permalink
sunvdc: remove unnecessary oom message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhen Lei authored and Jens Axboe committed Jun 9, 2021
1 parent ce9a8ca commit 6597efa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/sunvdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6597efa

Please sign in to comment.