diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-09 15:23:27 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-09 18:41:52 +0300 |
commit | 6597efa6c58fa9f02f624e3e99bb00e73c32bcb2 (patch) | |
tree | e9c83616a27cb270d608005f43432f3d59b1c831 /drivers/block/sunvdc.c | |
parent | ce9a8ca68aec3fe2b817e38d169b792214e5fda0 (diff) | |
download | linux-6597efa6c58fa9f02f624e3e99bb00e73c32bcb2.tar.xz |
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>
Diffstat (limited to 'drivers/block/sunvdc.c')
-rw-r--r-- | drivers/block/sunvdc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index 39aeebc6837d..448970491bf8 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c @@ -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; } |