[PATCH] fixup: remove uninitialized variable bl

From: Nicolás Antinori

Date: Thu Sep 24 2026 - 17:47:09 EST


Remove the uninitialized variable bl and fix the IS_ERR check.

Signed-off-by: Nicolás Antinori <nico.antinori.7@xxxxxxxxx>
---
Small follow-up patch that fixes usage of unintialized variable.

Apologies for this oversight!

drivers/gpu/drm/tiny/ch1115-i2c.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/tiny/ch1115-i2c.c b/drivers/gpu/drm/tiny/ch1115-i2c.c
index cb6198a8e55b..631dd25e7dcc 100644
--- a/drivers/gpu/drm/tiny/ch1115-i2c.c
+++ b/drivers/gpu/drm/tiny/ch1115-i2c.c
@@ -751,7 +751,6 @@ static int ch1115_probe(struct i2c_client *client)
{
struct ch1115_device *ch1115;
struct device *dev;
- struct backlight_device *bl;
int ret;

dev = &client->dev;
@@ -802,8 +801,8 @@ static int ch1115_probe(struct i2c_client *client)

ch1115->bl_dev = devm_backlight_device_register(dev, dev_name(dev), dev, ch1115,
&ch1115_bl_ops, &bl_props);
- if (IS_ERR(bl))
- return dev_err_probe(dev, PTR_ERR(bl),
+ if (IS_ERR(ch1115->bl_dev))
+ return dev_err_probe(dev, PTR_ERR(ch1115->bl_dev),
"Unable to register backlight device\n");

// DRM
--
2.47.3