Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: tps65217_bl: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
3d8e4b40 c6915be4

+1 -4
+1 -4
drivers/video/backlight/tps65217_bl.c
··· 200 200 201 201 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); 202 202 if (!pdata) { 203 - dev_err(&pdev->dev, "failed to allocate platform data\n"); 204 203 err = ERR_PTR(-ENOMEM); 205 204 goto err; 206 205 } ··· 295 296 296 297 tps65217_bl = devm_kzalloc(&pdev->dev, sizeof(*tps65217_bl), 297 298 GFP_KERNEL); 298 - if (tps65217_bl == NULL) { 299 - dev_err(&pdev->dev, "allocation of struct tps65217_bl failed\n"); 299 + if (tps65217_bl == NULL) 300 300 return -ENOMEM; 301 - } 302 301 303 302 tps65217_bl->tps = tps; 304 303 tps65217_bl->dev = &pdev->dev;