From patchwork Fri May 23 10:31:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 30709 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 186452066E for ; Fri, 23 May 2014 10:34:50 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hq11sf639266vcb.10 for ; Fri, 23 May 2014 03:34:49 -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=VdjW4Fsq34uzy5z15LPE4QmfHHHvK7GBZ+KTbmIAvkQ=; b=TUlyMn9/7nusuAVJMYQAaJtFgG7TSLBnIM5QY2yES6GWYbCUZqGpIAG2RQu4kyhBVC igeb5DGMWtVxfNP4OgXD6jkWo09lpp/k6LMFsZh7NTUaiE8qhSBOj7EW9XiqMbhDIrxn xecP3EZGjTwMbj3EsmiuwsvVe4/p04Vv34Ybc7RDVuajDGJ6W/8pEjrImQjG31UlO5HT UmRIKZPoTZoPYEeXtLSRSdLvzt04G0uxKTeXe7Vo48gPe9kHQ64uH3sFqcoUqZ32SvSr RGWD30MlJUjWJnx036V3GZSun6YSNtUPBZqGlPALoIVUozNrmiG2WGp/6te8Kj7CLEc9 h98g== X-Gm-Message-State: ALoCoQmg+w9rcw/uCoXuTQUOKivycVAGaVhRQKUaN8QfTqqu673YMcH2pDe1OD6lBVLym3f/npe/ X-Received: by 10.236.39.175 with SMTP id d35mr1544976yhb.12.1400841289869; Fri, 23 May 2014 03:34:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.81 with SMTP id b75ls1703452qgd.34.gmail; Fri, 23 May 2014 03:34:49 -0700 (PDT) X-Received: by 10.221.40.193 with SMTP id tr1mr3355877vcb.31.1400841289766; Fri, 23 May 2014 03:34:49 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id dp3si1366054vdc.106.2014.05.23.03.34.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id la4so6005780vcb.13 for ; Fri, 23 May 2014 03:34:49 -0700 (PDT) X-Received: by 10.52.241.98 with SMTP id wh2mr2838745vdc.37.1400841289671; Fri, 23 May 2014 03:34:49 -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 ib8csp19951vcb; Fri, 23 May 2014 03:34:49 -0700 (PDT) X-Received: by 10.68.230.41 with SMTP id sv9mr4696748pbc.23.1400841288908; Fri, 23 May 2014 03:34:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dl2si3264315pbc.108.2014.05.23.03.34.48 for ; Fri, 23 May 2014 03:34:48 -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 S1753318AbaEWKel (ORCPT + 27 others); Fri, 23 May 2014 06:34:41 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:51967 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbaEWKc7 (ORCPT ); Fri, 23 May 2014 06:32:59 -0400 Received: by mail-wi0-f182.google.com with SMTP id r20so622216wiv.3 for ; Fri, 23 May 2014 03:32:58 -0700 (PDT) X-Received: by 10.180.78.5 with SMTP id x5mr2541717wiw.12.1400841178130; Fri, 23 May 2014 03:32:58 -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.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 03:32:57 -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 66/71] clocksource: sh_cmt: Remove unnecessary OOM messages Date: Fri, 23 May 2014 12:31:46 +0200 Message-Id: <1400841111-6683-66-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.182 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_cmt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index bc8d025..dfa7803 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -1106,10 +1106,8 @@ static int sh_cmt_probe(struct platform_device *pdev) } cmt = kzalloc(sizeof(*cmt), GFP_KERNEL); - if (cmt == NULL) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); + if (cmt == NULL) return -ENOMEM; - } ret = sh_cmt_setup(cmt, pdev); if (ret) {