From patchwork Tue Aug 29 09:34:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 111205 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1061976qge; Tue, 29 Aug 2017 02:36:31 -0700 (PDT) X-Received: by 10.98.34.28 with SMTP id i28mr3316358pfi.135.1503999391695; Tue, 29 Aug 2017 02:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503999391; cv=none; d=google.com; s=arc-20160816; b=W4UVGMeQkHFBwFasKxEwuIUY/64W4lb04i7yy0LYK5FzYZu/cylGosNp3QuU6y2i5Y nHkQIubRIs8Det32tqH8rKuY+6ytU3/N2HsopinInOSppiZ0ywz2jddpTjOtBM21lu9e zOjhOQU4PAgvokgVF4nBtUWpuc6RgrWFPnXUYzhSZegoTtQH+emY2KNitX5YrM/9Z5rz nvjqAGbU4RYsP/EFAQKiJ0dXI2x7s1GzguUKsxmaiBGaI+k9iP221oUM61uj1ZDW+DKk GCcg5FVuCaCcpsgoEDennFJaBQTpK91nS6iocFMoxTLe1OnGGc4lIa7t6ohsDgMmnw9F tPdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5icsjUkWTCP2G8LcGra3SEyc0qKFAE2aeiMQy/Om83o=; b=snAnutK0d7LoSKuW/4fHBGcxa2U+hipVNJoNd30T7w8jqb0tsG0zKAE+eGGp5SFRnx V/KP+nxZTN2vCpwkxZit1lXvm+0iK6NeYhiSvvcQMEGjP99Gj9hzxG1Oqcc80G0qjbj9 +xocjdt51Dwi7EUiOlWTUu0DEtgHLr+DsVbS7NTKrTnbImdG00vluGx4gpl8jfPSzCRb VC6Mz1dgPIHbDwIdvSPcUBrXLy5fNRVmTJQvPNlU+a8HBsaFqtCLy3rVIKo1m0UegPXK B532lDXbVnQNUVSn7bSi1SqZcxDiPfug0DzjgtvpO4Bh/Xc+m5yhTnt9uBPk+amfnhTv WY4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sr4CpFl8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e189si2009550pfa.184.2017.08.29.02.36.31; Tue, 29 Aug 2017 02:36:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sr4CpFl8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbdH2Jg3 (ORCPT + 26 others); Tue, 29 Aug 2017 05:36:29 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37308 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752163AbdH2JgL (ORCPT ); Tue, 29 Aug 2017 05:36:11 -0400 Received: by mail-wm0-f44.google.com with SMTP id u26so18646646wma.0 for ; Tue, 29 Aug 2017 02:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5icsjUkWTCP2G8LcGra3SEyc0qKFAE2aeiMQy/Om83o=; b=Sr4CpFl8q0nx+8Arikocvj3Hh4bzH/6YeKOvW3CHlggZJX5Cpfmth4zvJdDg0Pq0nD mMOYlNnJisqrlDCd6yEl3FJIwoQs1lLOjMLeuWRIVgSeXt8pKv7M7L2lTV77BEjcPkBs V0nobJXwc2P8FfBOt10C4WeVAisthnNA5JIoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5icsjUkWTCP2G8LcGra3SEyc0qKFAE2aeiMQy/Om83o=; b=WjZK69uNLNCOpHYhLNm+d01zrbexnlTjlyuXkuS6UcVEDLjb5y9jgFWYyyl4LZfecY ZfDiAWRW+pjkOzwKEsZYIKT9Ceht+OKwsuhZfvj9bNUWPlV/OvilVOxPqy/ZYgd5JD3B ZTR1l0FSXSoIFr72hEGTxOiDQ7rB5y769WUCHEVA9AkppflWdQngFTukjYcp8wN7vuXj FfEsoCvLhwmhROaAZHE2uS9bvFujtgFbm5kiMFyyuE8DyHkX6OzcFYtpJd0/EaxSBjFR PVhUmo/9o/gvc30QzlnELO939OL3QZvbI7aCLjpZUDBlRWH7ts+AjJjj71bOAEnzXqWV JpZg== X-Gm-Message-State: AHYfb5gAEaT9I0ZKnUbKpduy5mi+P4RAbcxrkl4P6M5zeXTdfT7juAxY b1uD8M+GielH+ah8 X-Received: by 10.28.187.4 with SMTP id l4mr1916204wmf.168.1503999370653; Tue, 29 Aug 2017 02:36:10 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:cc22:a7ba:e8a7:7caf]) by smtp.gmail.com with ESMTPSA id r18sm3621775wrc.44.2017.08.29.02.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Aug 2017 02:36:10 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Markus Elfring , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Eric Anholt , Stefan Wahren , linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE) Subject: [PATCH 9/9] clocksource/drivers/bcm2835: Remove message on memory allocation failure Date: Tue, 29 Aug 2017 11:34:27 +0200 Message-Id: <1503999271-15712-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503999271-15712-1-git-send-email-daniel.lezcano@linaro.org> References: <20170829093354.GA2572@mai> <1503999271-15712-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring The bcm2835_timer_init() function emits an error message in case of a memory allocation failure. This is pointless as the mm core already do that. Remove this message. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Daniel Lezcano --- drivers/clocksource/bcm2835_timer.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.4 diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 82828d3..39e489a 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -114,7 +114,6 @@ static int __init bcm2835_timer_init(struct device_node *node) timer = kzalloc(sizeof(*timer), GFP_KERNEL); if (!timer) { - pr_err("Can't allocate timer struct\n"); ret = -ENOMEM; goto err_iounmap; }