Message ID | 9a6e9845-23f0-0eb8-3c5b-d877e9874a1d@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1478F60159 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 5 Jan 2018 21:35:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 772E027F4B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 5 Jan 2018 21:35:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AEDA27F9F; Fri, 5 Jan 2018 21:35:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14D7F27F4B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 5 Jan 2018 21:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=isdRldPfztKT0ytb0MtrLdTT7ytNw5x6DZi5tXZaHJI=; b=X8A4+S8XrSPqmI O6FzpxiPbQWzh7u+OxmbmuWCVbxX1cGDPXMNSbdePlbXtfXWyItdFiwU1HKgkI477N+4ZpMAlV1/1 kmQPsyelgcn5qMhRP3ZCGzyIxEmSJar+BCGujNLg7SmilgWvchJCFzkSOxMubor89S210MgDwjuk1 GNRfXN3+negRH2bo6ddZdS+ELIC5OonB25I0/8pnqOilT+qvcqlCPSbQAXm3b0tOLDEJlcMYi9hSI +797Po2Eatae7BV0mfuYtinsT146p+XVMhDNDoWvlxsTF1gPhIxUuqvLk/qTDPI87X3VW/Csbp6c2 u/aPZ1q9sfUYiZQBByOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eXZeB-0005im-3T; Fri, 05 Jan 2018 21:35:27 +0000 Received: from mout.web.de ([212.227.17.12]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eXZdn-0004pT-6h; Fri, 05 Jan 2018 21:35:05 +0000 Received: from [192.168.1.3] ([78.49.23.29]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LgpNC-1fI9zF0FZ0-00oBlm; Fri, 05 Jan 2018 22:34:39 +0100 To: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Boris Brezillon <boris.brezillon@free-electrons.com>, Brian Norris <computersforpeace@gmail.com>, Chen-Yu Tsai <wens@csie.org>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>, David Woodhouse <dwmw2@infradead.org>, Marek Vasut <marek.vasut@gmail.com>, Maxime Ripard <maxime.ripard@free-electrons.com>, Richard Weinberger <richard@nod.at> From: SF Markus Elfring <elfring@users.sourceforge.net> Subject: [PATCH] mtd/nand/sunxi: Delete an error message for a failed memory allocation in sunxi_nand_chip_init() Message-ID: <9a6e9845-23f0-0eb8-3c5b-d877e9874a1d@users.sourceforge.net> Date: Fri, 5 Jan 2018 22:34:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:uP1H1DBgl6OlfARdLQwehtsV0qbLS8ZPkSBZpTuXjss5kvOYwXY SO1J6aziBOmMRmM/+dxAheYb9M/TyCjUAywERO88aB2yTf3zbz33+WkWC0OKjmRqR0D9MD1 piKWHP+jOiTv5ijTh/vZb6VnPt97CCZqF/rw5oulbPTBMp7tfzonkcLTyxki8II5psoDTlX SltPBcIXFaKP6WAl9GbUA== X-UI-Out-Filterresults: notjunk:1; V01:K0:tKyAUC43Mc0=:LRy+K/TDyKP/+bOwJR7CfW +HhzF4huDKfhtDjYef4/gPgoVneJPpiTaM3C7vkF+T76SI1RPD78nQ3cIc7isDpOzZavm6hO1 VmY/sED+itECdRZ43bY8tv/t0DHLyKKG+pk4sy8Mu+rJd1kvKLJy176ug+NrU1YCDcRSvD7AA G6QUy5hIoW3tvCpJGr6EVXF+5b4ESDTRF5btMXRtEVnijc/3Q3U3FeuiKPW3t9Z1OJRap4FCL TuqSZj9qKLj7rM3QUILCSlj86oEVkBRfagkYnVFzXoLA2t6eNDGw6Cd/KNj5cIpm7ZjlOEuGW gAV1T+hxGlyK9Rz2HT0lnbcOIOSzWpXgiYvhEEi7TFAkVmYLXtDvjWwQykGmeQ+7PgRN4zios oM3Gf6HszmJvJFg4iOJHDIdlfrHvsCR4WQbuLxI8RbIAg5dPwiGOcnF6BuwSRGerFcI5lzn68 ubFG9EHbwUNFBVNN8qrWeyhyFKzI8iTXjqyX8o42VojwzytKnAeaXA5czmwKcgBooWswG3ngO q9bIUbS9MuebBbNWIOQl1fuqE/0XCYaib6FezF7N88j9oWGCU8ZwtnCAF+nsLB4pmgUL7PHzd p3QdLCxqAlzoeWMOkCa0qIXSC7OnHeVFL0D5fKdr8VWj4oiy/q3w6vRD3CnG4eTtbF+pixIxu 7O/pyWwly1vEVk9D56NvnLVz+JQo/ZHy+gxDFdAspcx1fjB3K823mCCB6uBXS2O4X4Cl47FKh FRoLwJ4svMHTQ5iIiol/utgFjgrl0fNbMSMVlUmKT6jJedsrV7YrSuFAaAXLYjI9hJlqA28JD +HlSk6iCZHaiKxJo3vvOu00wfTZBTlz+qC0XVryQ0q7gdD0or0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180105_133503_704846_2237734A X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index 82244be3e766..ebfa130a9285 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c @@ -2019,10 +2019,8 @@ static int sunxi_nand_chip_init(struct device *dev, struct sunxi_nfc *nfc, sizeof(*chip) + (nsels * sizeof(struct sunxi_nand_chip_sel)), GFP_KERNEL); - if (!chip) { - dev_err(dev, "could not allocate chip\n"); + if (!chip) return -ENOMEM; - } chip->nsels = nsels; chip->selected = -1;