summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/panel/panel-tpo-td028ttec1.c')
-rw-r--r--drivers/gpu/drm/panel/panel-tpo-td028ttec1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
index a400c83486b4..d7b2e34626ef 100644
--- a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
+++ b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
@@ -328,7 +328,7 @@ static int td028ttec1_probe(struct spi_device *spi)
int ret;
lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL);
- if (lcd == NULL)
+ if (!lcd)
return -ENOMEM;
spi_set_drvdata(spi, lcd);