瀏覽代碼

ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_init()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Markus Elfring 8 年之前
父節點
當前提交
a9e317c388
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      arch/arm/mach-omap1/timer.c

+ 0 - 2
arch/arm/mach-omap1/timer.c

@@ -134,8 +134,6 @@ static int __init omap1_dm_timer_init(void)
 
 		pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
 		if (!pdata) {
-			dev_err(&pdev->dev, "%s: Failed to allocate pdata.\n",
-				__func__);
 			ret = -ENOMEM;
 			goto err_free_pdata;
 		}