diff options
author | 2025-04-30 11:03:46 +0300 | |
---|---|---|
committer | 2025-04-30 14:51:40 +0200 | |
commit | b389df0f6b5a2e0655e9f101af97d75e35fb874c (patch) | |
tree | 405f602c670e49b04881f0e927403bc7c98eaa4d /scripts/lib/kdoc/kdoc_output.py | |
parent | drm/panel-edp: Add support for CSW MNE007QS3-8 panel (diff) | |
download | linux-rng-b389df0f6b5a2e0655e9f101af97d75e35fb874c.tar.xz linux-rng-b389df0f6b5a2e0655e9f101af97d75e35fb874c.zip |
drm/st7571-i2c: Fix IS_ERR() vs NULL checks in probe()
The devm_kzalloc() function returns NULL on failure, not error pointers.
Also printing an error message for kmalloc() failures is against kernel
style so just return -ENOMEM without printing a message. (Kmalloc
already prints a message).
Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD controller")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/aBHZYgPPPYY-J8Vd@stanley.mountain
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions