From patchwork Tue Apr 29 08:22:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4085841 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C34CF9F39D for ; Tue, 29 Apr 2014 08:22:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAE5C20155 for ; Tue, 29 Apr 2014 08:22:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0679E201F5 for ; Tue, 29 Apr 2014 08:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756381AbaD2IWj (ORCPT ); Tue, 29 Apr 2014 04:22:39 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19551 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751675AbaD2IWd (ORCPT ); Tue, 29 Apr 2014 04:22:33 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4S00E2A9XKMAC0@mailout1.samsung.com> for linux-spi@vger.kernel.org; Tue, 29 Apr 2014 17:22:32 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id F9.28.11496.8416F535; Tue, 29 Apr 2014 17:22:32 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-c5-535f614851ca Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B2.CE.27725.8416F535; Tue, 29 Apr 2014 17:22:32 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4S00DDS9XKA000@mmp1.samsung.com>; Tue, 29 Apr 2014 17:22:32 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Jingoo Han' References: <002401cf6383$7e9ce1f0$7bd6a5d0$%han@samsung.com> In-reply-to: <002401cf6383$7e9ce1f0$7bd6a5d0$%han@samsung.com> Subject: [PATCH 6/7] spi: tle62x0: remove unnecessary OOM messages Date: Tue, 29 Apr 2014 17:22:32 +0900 Message-id: <002a01cf6384$2ad0e5c0$8072b140$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9jg36HlbCqKDpQT3SMVWTyuXezSgAAIUBQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zfV2PxPhggzcv1C2mPnzCZnF54SVW i8aPN9kdmD02repk8+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6M48emMRV8Za149fMsawPj C5YuRg4OCQETiak3o7oYOYFMMYkL99azgdhCAssYJf5PjYCIm0icn3KWtYuRCyi+iFHi2v7H zBDOb0aJFUc/M4NUsQmoSXz5cpgdZKiIgKrE/1fuIGFmAUeJXf8vs4KEhQRsJVrel4KYnAJ2 ErNPm4JUCAs4SVxonAm2lgWo8fvOf2ADeYGqN165zAZhC0r8mHyPBWKilsT6nceZIGx5ic1r 3jJDfKIu8eivLkhYRMBI4v+VrYwQJSIS+168YwQ5WELgELvE6u3XmCF2CUh8m3wIGgqyEpsO MEN8KylxcMUNlgmMErOQbJ6FZPMsJJtnIVmxgJFlFaNoakFyQXFSepGpXnFibnFpXrpecn7u JkZI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ifPh542vf5P eLb+tFsds72X6f1tmfSWt6ltby7ZW/DwvPtW5pzx+ZGdyOyjX5vLDC1M9VgUr35ULLgy4fKf kDqZhLlhIu1KLMUZiYZazEXFiQAcp88qMQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/spi/spi-tle62x0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c index 2d4010d..daf5aa1 100644 --- a/drivers/spi/spi-tle62x0.c +++ b/drivers/spi/spi-tle62x0.c @@ -253,10 +253,8 @@ static int tle62x0_probe(struct spi_device *spi) } st = kzalloc(sizeof(struct tle62x0_state), GFP_KERNEL); - if (st == NULL) { - dev_err(&spi->dev, "no memory for device state\n"); + if (st == NULL) return -ENOMEM; - } st->us = spi; st->nr_gpio = pdata->gpio_count;