Hi Krzysztof,
On 2023/6/8 14:37, Krzysztof Kozlowski wrote:
On 07/06/2023 14:33, Hans Hu wrote:
+
+ i2c = devm_kzalloc(&pdev->dev, sizeof(*i2c), GFP_KERNEL);
+ if (IS_ERR(i2c)) {
+ return dev_err_probe(&pdev->dev, -ENOMEM,
+ "devm_kzalloc failed\n");
Don't print ENOMEM.
will change to just return -ENOMEM;
Run:
1. Checkpatch
2. Coccinelle
to fix trivial issues.
I used the checkpatch in different versions of the kernel, and there were
no errors, just a warning about the modify MAINTAINERS, will modify it.
You did not run Coccinelle/coccicheck, so you have trivial issues in the
code. There is no need for us to manually review something which tools
point out.
Please run Coccinelle/coccicheck and fix all errors.
I installed coccinelle/sparse that checked out some errors and warnings,
and these trivial issues will be fixed in patch v4.
Thank you,
Hans
Best regards,
Krzysztof