hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/i2c/busses/i2c-sh7760.c
....@@ -443,9 +443,8 @@
443443 goto out0;
444444 }
445445
446
- id = kzalloc(sizeof(struct cami2c), GFP_KERNEL);
446
+ id = kzalloc(sizeof(*id), GFP_KERNEL);
447447 if (!id) {
448
- dev_err(&pdev->dev, "no mem for private data\n");
449448 ret = -ENOMEM;
450449 goto out0;
451450 }