From patchwork Tue Jan 16 11:59:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10166593 Return-Path: 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 67621601E7 for ; Tue, 16 Jan 2018 11:59:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56B8E284AA for ; Tue, 16 Jan 2018 11:59:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B095284B3; Tue, 16 Jan 2018 11:59:07 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF897284AA for ; Tue, 16 Jan 2018 11:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751803AbeAPL7F (ORCPT ); Tue, 16 Jan 2018 06:59:05 -0500 Received: from mout.web.de ([217.72.192.78]:50328 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628AbeAPL7E (ORCPT ); Tue, 16 Jan 2018 06:59:04 -0500 Received: from [192.168.1.3] ([92.228.15.72]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlF9O-1f9vxg0hFu-00b2eZ; Tue, 16 Jan 2018 12:59:02 +0100 Subject: [PATCH 1/4] mfd/tps65910: Delete an error message for a failed memory allocation in tps65910_parse_dt() From: SF Markus Elfring To: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Tue, 16 Jan 2018 12:59:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:LNpUeRIyL1Ki8l8T263XpNRY49sXfexVNVXeina3jXWvdxcspZm GMxnM9zYMgdshDxuFwbFsYBfivpGtann2t7rEQqbPJJ+3zE01dN86dTJ5eALnq1j4+TnWaC 0ssHAGJdxtWtA4aKqnMHM8yj7yNtn2U4p6L0YKFZC0DtUDsNFPqfgAV+ryF5gXoZg4yFJqA qzksAT7yH24zj8PEYrzjw== X-UI-Out-Filterresults: notjunk:1; V01:K0:+bSlUmEL63g=:r4LUoadVdDqqCkK84vfsO2 4tADhaf6wwzKiYGu46g90CMgGbhULs71X1qjTPaowpROIWzz/0cqwRIvJV4w7qjcjjPlqZW0R UAEoluCtkWW0YzkR5B2sF3OPvS61aVUeLa2gYHB4DG0ij1dWuXGQV3lCXISjRiKJ0wR9tA2da pAiSqQFfB3NfkMXc25MhZf+gyduqREEYZLUFFBukcpNsHfJ5LYaHru3GIa51CgNDev8lgaYN5 C8ttzzb710Z6U5F3mZSeJsQSxzrbfJ0hQSoUhdinWgrHAx/4G4DSWYMmnz22M9pbQliND2WNu xmnxmj6X2u1RWn0Hjkf0Np23OiNPr9UmyPk7naxtT16R6Gi1WeVQD2ZOej+IBicdcc86PWu8k lsdycDz8BlCcL38DD048+2ODu2vin9X8kk2mY5LTWYEG9d5R8L4Slhd43hViWfsc6yyL6qtQI xSebo9PyhAhzchN7adL2W7lrhQtagpxxrT78/1VJmQFg1ho2ysrQ+ns7rDXgrP9aCmwJXdBvc Fr5NSswXUh5adWfALPlsoV0F5NfpDAMnLTZuN1cE4ktaNNaP7uo9WnAsdoDAGVqRxHJe/tkv6 NXwf7+qcyK6OZkcl1al6ok4GPAp6U5LyGJWWKMCDLOJnfrV0sa2SzrI1RbiUrfJa3ywUQdE24 7CKQHovbj7P5Ng0hF33qgS4vpCcFL1BACOGmCLFhIvROcwF8nOpcAMjCkkIzcDK6fuh8N7LnR MFSfO1lzmdkcof4cpXT74ZBE4sCb6WuN6tGkNskvm6+erox3Jhf0dmDJIVmdOCe8ze6sxcB7i d5LR8z+2oQ+n9Ux2m1WK6ZJlpRklEGgdR4hD0hjXfoCW+2OjE8= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 16 Jan 2018 11:14:40 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/mfd/tps65910.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 8263605f6d2f..555bd394efc3 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -395,10 +395,8 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, board_info = devm_kzalloc(&client->dev, sizeof(*board_info), GFP_KERNEL); - if (!board_info) { - dev_err(&client->dev, "Failed to allocate pdata\n"); + if (!board_info) return NULL; - } ret = of_property_read_u32(np, "ti,vmbch-threshold", &prop); if (!ret)