hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gp10b.c
....@@ -51,9 +51,5 @@
5151 gp10b_ibus_new(struct nvkm_device *device, int index,
5252 struct nvkm_subdev **pibus)
5353 {
54
- struct nvkm_subdev *ibus;
55
- if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
56
- return -ENOMEM;
57
- nvkm_subdev_ctor(&gp10b_ibus, device, index, ibus);
58
- return 0;
54
+ return nvkm_subdev_new_(&gp10b_ibus, device, index, pibus);
5955 }