diff options
| author | 2018-02-06 21:51:15 +0100 | |
|---|---|---|
| committer | 2018-02-28 11:25:35 +0200 | |
| commit | 3366ba38cad887e587b28b7ab83a01e1c59a8466 (patch) | |
| tree | 2b70107b8baa0aa477c8b7673f1ff6407ba4f9d6 /drivers/gpu/drm/tilcdc/tilcdc_crtc.c | |
| parent | Merge branch 'drm-next-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-next (diff) | |
| download | wireguard-linux-3366ba38cad887e587b28b7ab83a01e1c59a8466.tar.xz wireguard-linux-3366ba38cad887e587b28b7ab83a01e1c59a8466.zip | |
drm/tilcdc: Delete an error message for a failed memory allocation in seven functions
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_crtc.c')
| -rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 8bf6bb93dc79..1b278a22c8b7 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -994,10 +994,8 @@ int tilcdc_crtc_create(struct drm_device *dev) int ret; tilcdc_crtc = devm_kzalloc(dev->dev, sizeof(*tilcdc_crtc), GFP_KERNEL); - if (!tilcdc_crtc) { - dev_err(dev->dev, "allocation failed\n"); + if (!tilcdc_crtc) return -ENOMEM; - } init_completion(&tilcdc_crtc->palette_loaded); tilcdc_crtc->palette_base = dmam_alloc_coherent(dev->dev, |
