Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751960AbeAPL7G (ORCPT + 1 other); Tue, 16 Jan 2018 06:59:06 -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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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) -- 2.15.1