From patchwork Fri May 23 10:31:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 30707 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 288BB20369 for ; Fri, 23 May 2014 10:34:35 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id w7sf15055793qcr.4 for ; Fri, 23 May 2014 03:34:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=I/PsrrzLBZ8m49qh08jfyCSxZOfAHRDBfLrj4W/OYe8=; b=RP3EQDBF5qnWPXiV2b4clYdTgxx2czS/IIWeUKUu41Z1FlBLfsc/OuJMMWz/NgwQNz JpAoZxh1HnpMi52R2ii6hn6Od4eHocTsah11UsIIqZ8P+Nt5q2B795a3aeymn13IQ3oF y6GUDxsR9He+sFoTgMuyQZMg5YY16IG/SF6JtkgNdB6y9TwNmq+6fjnaJGI3FfxJlGqm HrUk+XwR5IIqDSzcoBd9rB2gg0hnZ4XE1kgoCpEzLuE2AjHbcyPBNiuvCWe/Ylqe1L5W BgeJcO/3yeirY5fN+xeDDr4VoRp17zQsiZWkMJlXDBo9lGY5Hray+1NirSDvERFFK6zy bdrg== X-Gm-Message-State: ALoCoQn8erP18oxfwSoMG0SqnHMQDqx3P2zywUxkYDMozO+ox639qz8GGqhfwpDWbrpEQjG0b199 X-Received: by 10.58.30.78 with SMTP id q14mr1799364veh.10.1400841274998; Fri, 23 May 2014 03:34:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.115 with SMTP id c106ls1667277qge.55.gmail; Fri, 23 May 2014 03:34:34 -0700 (PDT) X-Received: by 10.58.195.202 with SMTP id ig10mr1131269vec.33.1400841274916; Fri, 23 May 2014 03:34:34 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id u5si1384770vet.52.2014.05.23.03.34.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so5980143vcb.38 for ; Fri, 23 May 2014 03:34:34 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr3456888vcb.18.1400841274847; Fri, 23 May 2014 03:34:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp19931vcb; Fri, 23 May 2014 03:34:34 -0700 (PDT) X-Received: by 10.68.211.164 with SMTP id nd4mr4793637pbc.44.1400841274149; Fri, 23 May 2014 03:34:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fl5si3211347pbb.220.2014.05.23.03.34.33 for ; Fri, 23 May 2014 03:34:33 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313AbaEWKe0 (ORCPT + 27 others); Fri, 23 May 2014 06:34:26 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:43827 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753193AbaEWKdA (ORCPT ); Fri, 23 May 2014 06:33:00 -0400 Received: by mail-wi0-f177.google.com with SMTP id f8so619321wiw.4 for ; Fri, 23 May 2014 03:32:59 -0700 (PDT) X-Received: by 10.194.104.129 with SMTP id ge1mr768832wjb.94.1400841179514; Fri, 23 May 2014 03:32:59 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-404-187.w82-125.abo.wanadoo.fr. [82.125.3.187]) by mx.google.com with ESMTPSA id s9sm2200908wix.13.2014.05.23.03.32.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:32:58 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 67/71] clocksource: sh_mtu2: Remove unnecessary OOM messages Date: Fri, 23 May 2014 12:31:47 +0200 Message-Id: <1400841111-6683-67-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400841111-6683-1-git-send-email-daniel.lezcano@linaro.org> References: <537F214C.8000700@linaro.org> <1400841111-6683-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jingoo Han The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. [dlezcano] : refreshed against latest modifications: kmalloc -> kzalloc Signed-off-by: Jingoo Han Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_mtu2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index f2c1c36..188d4e0 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c @@ -533,10 +533,8 @@ static int sh_mtu2_probe(struct platform_device *pdev) } mtu = kzalloc(sizeof(*mtu), GFP_KERNEL); - if (mtu == NULL) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); + if (mtu == NULL) return -ENOMEM; - } ret = sh_mtu2_setup(mtu, pdev); if (ret) {