summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/ili922x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/ili922x.c')
-rw-r--r--drivers/video/backlight/ili922x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c
index 73464e4b4c7..ea67fe199e3 100644
--- a/drivers/video/backlight/ili922x.c
+++ b/drivers/video/backlight/ili922x.c
@@ -482,10 +482,8 @@ static int ili922x_probe(struct spi_device *spi)
u16 reg = 0;
ili = devm_kzalloc(&spi->dev, sizeof(*ili), GFP_KERNEL);
- if (!ili) {
- dev_err(&spi->dev, "cannot alloc priv data\n");
+ if (!ili)
return -ENOMEM;
- }
ili->spi = spi;
spi_set_drvdata(spi, ili);